diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-16 18:19:00 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-16 18:19:00 -0300 |
| commit | c2bb9abceceef125554595e23b7cc18ad3555c7c (patch) | |
| tree | 2c00262ddf0e4f8acc1db83bdee4a56bb2458117 /lvm.c | |
| parent | da32450c3d4c8abd3fd6709692859a12a8886511 (diff) | |
| download | lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.gz lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.bz2 lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.zip | |
better quotes for strings in error messages
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.41 2005/05/03 19:30:17 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.42 2005/05/04 20:42:28 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 | */ |
| @@ -688,11 +688,11 @@ StkId luaV_execute (lua_State *L, int nexeccalls) { | |||
| 688 | const TValue *pstep = ra+2; | 688 | const TValue *pstep = ra+2; |
| 689 | L->savedpc = pc; /* next steps may throw errors */ | 689 | L->savedpc = pc; /* next steps may throw errors */ |
| 690 | if (!tonumber(init, ra)) | 690 | if (!tonumber(init, ra)) |
| 691 | luaG_runerror(L, "`for' initial value must be a number"); | 691 | luaG_runerror(L, "'for' initial value must be a number"); |
| 692 | else if (!tonumber(plimit, ra+1)) | 692 | else if (!tonumber(plimit, ra+1)) |
| 693 | luaG_runerror(L, "`for' limit must be a number"); | 693 | luaG_runerror(L, "'for' limit must be a number"); |
| 694 | else if (!tonumber(pstep, ra+2)) | 694 | else if (!tonumber(pstep, ra+2)) |
| 695 | luaG_runerror(L, "`for' step must be a number"); | 695 | luaG_runerror(L, "'for' step must be a number"); |
| 696 | setnvalue(ra, luai_numsub(nvalue(ra), nvalue(pstep))); | 696 | setnvalue(ra, luai_numsub(nvalue(ra), nvalue(pstep))); |
| 697 | dojump(L, pc, GETARG_sBx(i)); | 697 | dojump(L, pc, GETARG_sBx(i)); |
| 698 | continue; | 698 | continue; |
