diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-09-23 11:08:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-09-23 11:08:10 -0300 |
commit | 26be27459b11feabed52cf40aaa76f86c7edc977 (patch) | |
tree | 9f3cd8be898991a52f6b5f8b140a12b8b9acb51d /lvm.h | |
parent | cfbe378f906061ee56f91acfbdf569d0d3fb9556 (diff) | |
download | lua-26be27459b11feabed52cf40aaa76f86c7edc977.tar.gz lua-26be27459b11feabed52cf40aaa76f86c7edc977.tar.bz2 lua-26be27459b11feabed52cf40aaa76f86c7edc977.zip |
Negation in constant folding of '>>' may overflow
Diffstat (limited to 'lvm.h')
-rw-r--r-- | lvm.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -110,6 +110,11 @@ typedef enum { | |||
110 | luaC_barrierback(L, gcvalue(t), v); } | 110 | luaC_barrierback(L, gcvalue(t), v); } |
111 | 111 | ||
112 | 112 | ||
113 | /* | ||
114 | ** Shift right is the same as shift left with a negative 'y' | ||
115 | */ | ||
116 | #define luaV_shiftr(x,y) luaV_shiftl(x,intop(-, 0, y)) | ||
117 | |||
113 | 118 | ||
114 | 119 | ||
115 | LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2); | 120 | LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2); |