X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2Fregexec.c;h=bd5e72d4c522074587a39c5093e65007af660e09;hb=fcc00a10e321ec6181ad37ce3afe0d3cb78ad313;hp=007861675ba10816eb7e39254714b1035812a592;hpb=ad3ea3d85f164dc1b2746950e378334197d8688d;p=oota-llvm.git diff --git a/lib/Support/regexec.c b/lib/Support/regexec.c index 007861675ba..bd5e72d4c52 100644 --- a/lib/Support/regexec.c +++ b/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 */