diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.127 2017/06/27 11:35:31 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.128 2017/06/29 15:06:44 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -679,8 +679,7 @@ l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) { | |||
679 | 679 | ||
680 | l_noret luaG_opinterror (lua_State *L, const TValue *p1, | 680 | l_noret luaG_opinterror (lua_State *L, const TValue *p1, |
681 | const TValue *p2, const char *msg) { | 681 | const TValue *p2, const char *msg) { |
682 | lua_Number temp; | 682 | if (!ttisnumber(p1)) /* first operand is wrong? */ |
683 | if (!tonumber(p1, &temp)) /* first operand is wrong? */ | ||
684 | p2 = p1; /* now second is wrong */ | 683 | p2 = p1; /* now second is wrong */ |
685 | luaG_typeerror(L, p2, msg); | 684 | luaG_typeerror(L, p2, msg); |
686 | } | 685 | } |