mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
Negation in constant folding of '>>' may overflow
This commit is contained in:
parent
cfbe378f90
commit
26be27459b
4 changed files with 19 additions and 4 deletions
5
lvm.h
5
lvm.h
|
|
@ -110,6 +110,11 @@ typedef enum {
|
|||
luaC_barrierback(L, gcvalue(t), v); }
|
||||
|
||||
|
||||
/*
|
||||
** Shift right is the same as shift left with a negative 'y'
|
||||
*/
|
||||
#define luaV_shiftr(x,y) luaV_shiftl(x,intop(-, 0, y))
|
||||
|
||||
|
||||
|
||||
LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue