diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-08 12:50:23 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-08 12:50:23 -0200 |
commit | 26679ea35bf261f2b5edc2fb2f5cc4df483fd50d (patch) | |
tree | 94c99ed74251cdf3e10a7e52560c3a7a78053ad1 /ldebug.c | |
parent | c3e5946fb2b7b5781d9bca9d303967abe6263482 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | */ |
671 | l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) { | 671 | l_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 | } |