summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regexec.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-03-25 23:12:10 +0000
committertholo <tholo@openbsd.org>1996-03-25 23:12:10 +0000
commite9a182dd2c979d7ab787889fb6045e0c8126e31b (patch)
treee240fc8edaef708763f89bde52d3d9410a097943 /lib/libc/regex/regexec.c
parentAdd const qualifier to match prototype (diff)
downloadwireguard-openbsd-e9a182dd2c979d7ab787889fb6045e0c8126e31b.tar.xz
wireguard-openbsd-e9a182dd2c979d7ab787889fb6045e0c8126e31b.zip
Make a proper lvalue in INC
Diffstat (limited to 'lib/libc/regex/regexec.c')
-rw-r--r--lib/libc/regex/regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/regex/regexec.c b/lib/libc/regex/regexec.c
index 82921b3603b..493340854ee 100644
--- a/lib/libc/regex/regexec.c
+++ b/lib/libc/regex/regexec.c
@@ -82,7 +82,7 @@ static int nope = 0; /* for use in asserts; shuts lint up */
#define SETUP(v) ((v) = 0)
#define onestate long
#define INIT(o, n) ((o) = (unsigned long)1 << (n))
-#define INC(o) ((unsigned long)(o) <<= 1)
+#define INC(o) ((o) = (unsigned long)(o) << 1)
#define ISSTATEIN(v, o) (((v) & (o)) != 0)
/* some abbreviations; note that some of these know variable names! */
/* do "if I'm here, I can also be there" etc without branches */