diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -726,7 +726,7 @@ l_noret luaG_opinterror (lua_State *L, const TValue *p1, | |||
726 | */ | 726 | */ |
727 | l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) { | 727 | l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) { |
728 | lua_Integer temp; | 728 | lua_Integer temp; |
729 | if (!tointegerns(p1, &temp)) | 729 | if (!luaV_tointegerns(p1, &temp, LUA_FLOORN2I)) |
730 | p2 = p1; | 730 | p2 = p1; |
731 | luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2)); | 731 | luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2)); |
732 | } | 732 | } |