diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-17 13:28:21 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-17 13:28:21 -0300 |
commit | f97c64d7bf4c0f373711795d8faba0e8cd206761 (patch) | |
tree | 99c9e25132b2ef193dc417873e8f44e5c0ea8738 /lvm.c | |
parent | ea3155e380080095a6f8c63297f0505789cf08b7 (diff) | |
download | lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.tar.gz lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.tar.bz2 lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.zip |
macros 'LUA_QL'/'LUA_QL' deprecated
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.222 2014/07/30 14:42:44 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.223 2014/09/04 18:15:29 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -1033,13 +1033,13 @@ void luaV_execute (lua_State *L) { | |||
1033 | else { /* try making all values floats */ | 1033 | else { /* try making all values floats */ |
1034 | lua_Number ninit; lua_Number nlimit; lua_Number nstep; | 1034 | lua_Number ninit; lua_Number nlimit; lua_Number nstep; |
1035 | if (!tonumber(plimit, &nlimit)) | 1035 | if (!tonumber(plimit, &nlimit)) |
1036 | luaG_runerror(L, LUA_QL("for") " limit must be a number"); | 1036 | luaG_runerror(L, "'for' limit must be a number"); |
1037 | setfltvalue(plimit, nlimit); | 1037 | setfltvalue(plimit, nlimit); |
1038 | if (!tonumber(pstep, &nstep)) | 1038 | if (!tonumber(pstep, &nstep)) |
1039 | luaG_runerror(L, LUA_QL("for") " step must be a number"); | 1039 | luaG_runerror(L, "'for' step must be a number"); |
1040 | setfltvalue(pstep, nstep); | 1040 | setfltvalue(pstep, nstep); |
1041 | if (!tonumber(init, &ninit)) | 1041 | if (!tonumber(init, &ninit)) |
1042 | luaG_runerror(L, LUA_QL("for") " initial value must be a number"); | 1042 | luaG_runerror(L, "'for' initial value must be a number"); |
1043 | setfltvalue(init, luai_numsub(L, ninit, nstep)); | 1043 | setfltvalue(init, luai_numsub(L, ninit, nstep)); |
1044 | } | 1044 | } |
1045 | ci->u.l.savedpc += GETARG_sBx(i); | 1045 | ci->u.l.savedpc += GETARG_sBx(i); |