aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-08 12:50:23 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-08 12:50:23 -0200
commit26679ea35bf261f2b5edc2fb2f5cc4df483fd50d (patch)
tree94c99ed74251cdf3e10a7e52560c3a7a78053ad1 /ldebug.c
parentc3e5946fb2b7b5781d9bca9d303967abe6263482 (diff)
downloadlua-26679ea35bf261f2b5edc2fb2f5cc4df483fd50d.tar.gz
lua-26679ea35bf261f2b5edc2fb2f5cc4df483fd50d.tar.bz2
lua-26679ea35bf261f2b5edc2fb2f5cc4df483fd50d.zip
new function 'luaV_flttointeger' to convert floats to integers (without
string coercions) + string operands to bitwise operations handled by string metamethods
Diffstat (limited to '')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index e1f9c015..037809a2 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.140 2017/11/07 13:25:26 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.141 2017/11/07 17:20:42 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*/
@@ -670,7 +670,7 @@ l_noret luaG_opinterror (lua_State *L, const TValue *p1,
670*/ 670*/
671l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) { 671l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) {
672 lua_Integer temp; 672 lua_Integer temp;
673 if (!tointeger(p1, &temp)) 673 if (!tointegerns(p1, &temp))
674 p2 = p1; 674 p2 = p1;
675 luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2)); 675 luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2));
676} 676}