summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Support/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/lib/Support/regexec.c')
-rw-r--r--contrib/llvm/lib/Support/regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/lib/Support/regexec.c b/contrib/llvm/lib/Support/regexec.c
index 0078616..bd5e72d 100644
--- a/contrib/llvm/lib/Support/regexec.c
+++ b/contrib/llvm/lib/Support/regexec.c
@@ -69,7 +69,7 @@
#define SETUP(v) ((v) = 0)
#define onestate long
#define INIT(o, n) ((o) = (unsigned long)1 << (n))
-#define INC(o) ((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 */
OpenPOWER on IntegriCloud