lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


If I'm not mistaken this is undefined behavior (of the C kind):

1 >> math.mininteger

due to the following in lvm.c:

#define luaV_shiftr(x,y) luaV_shiftl(x,-(y))

Perhaps it should use `intop(-, 0, y)` instead of plain negation?

I don't know if this is a thing that anyone cares about, but I thought I'd point it out just in case.


Take care, o/