summaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-25 16:35:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-25 16:35:19 -0300
commit5951c79ae12b31556f8a64886b1d7fd0801d7889 (patch)
treea420ebf2aaee6cde6e6f4d397d7857c5bfecd4fb /lcode.c
parente381c582de1b80a5f3df2c0d36fc25b415b48de0 (diff)
downloadlua-5951c79ae12b31556f8a64886b1d7fd0801d7889.tar.gz
lua-5951c79ae12b31556f8a64886b1d7fd0801d7889.tar.bz2
lua-5951c79ae12b31556f8a64886b1d7fd0801d7889.zip
default increment for 'for' loop is an integer (1, not 1.0)
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcode.c b/lcode.c
index 8e0b443d..8a4b2ba9 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 2.63 2013/04/15 15:43:34 roberto Exp roberto $ 2** $Id: lcode.c,v 2.64 2013/04/16 18:46:28 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -322,14 +322,14 @@ int luaK_stringK (FuncState *fs, TString *s) {
322} 322}
323 323
324 324
325static int luaK_intK (FuncState *fs, lua_Integer n) { 325int luaK_intK (FuncState *fs, lua_Integer n) {
326 TValue o; 326 TValue o;
327 setivalue(&o, n); 327 setivalue(&o, n);
328 return addk(fs, &o, &o); 328 return addk(fs, &o, &o);
329} 329}
330 330
331 331
332int luaK_numberK (FuncState *fs, lua_Number r) { 332static int luaK_numberK (FuncState *fs, lua_Number r) {
333 int n; 333 int n;
334 lua_State *L = fs->ls->L; 334 lua_State *L = fs->ls->L;
335 TValue o; 335 TValue o;