|
|
@ -164,8 +164,7 @@ void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
|
|
|
|
/* call never returns, but to avoid warnings: *//* FALLTHROUGH */
|
|
|
|
/* call never returns, but to avoid warnings: *//* FALLTHROUGH */
|
|
|
|
case TM_BAND: case TM_BOR: case TM_BXOR:
|
|
|
|
case TM_BAND: case TM_BOR: case TM_BXOR:
|
|
|
|
case TM_SHL: case TM_SHR: case TM_BNOT: {
|
|
|
|
case TM_SHL: case TM_SHR: case TM_BNOT: {
|
|
|
|
lua_Number dummy;
|
|
|
|
if (ttisnumber(p1) && ttisnumber(p2))
|
|
|
|
if (tonumber(p1, &dummy) && tonumber(p2, &dummy))
|
|
|
|
|
|
|
|
luaG_tointerror(L, p1, p2);
|
|
|
|
luaG_tointerror(L, p1, p2);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
luaG_opinterror(L, p1, p2, "perform bitwise operation on");
|
|
|
|
luaG_opinterror(L, p1, p2, "perform bitwise operation on");
|
|
|
|