diff options
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ static lua_Integer intarith (lua_State *L, int op, lua_Integer v1, | |||
62 | case LUA_OPBOR: return intop(|, v1, v2); | 62 | case LUA_OPBOR: return intop(|, v1, v2); |
63 | case LUA_OPBXOR: return intop(^, v1, v2); | 63 | case LUA_OPBXOR: return intop(^, v1, v2); |
64 | case LUA_OPSHL: return luaV_shiftl(v1, v2); | 64 | case LUA_OPSHL: return luaV_shiftl(v1, v2); |
65 | case LUA_OPSHR: return luaV_shiftl(v1, -v2); | 65 | case LUA_OPSHR: return luaV_shiftr(v1, v2); |
66 | case LUA_OPUNM: return intop(-, 0, v1); | 66 | case LUA_OPUNM: return intop(-, 0, v1); |
67 | case LUA_OPBNOT: return intop(^, ~l_castS2U(0), v1); | 67 | case LUA_OPBNOT: return intop(^, ~l_castS2U(0), v1); |
68 | default: lua_assert(0); return 0; | 68 | default: lua_assert(0); return 0; |