aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index 0038d1b3..603c39fc 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -726,7 +726,7 @@ l_noret luaG_opinterror (lua_State *L, const TValue *p1,
726*/ 726*/
727l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) { 727l_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}