diff options
Diffstat (limited to 'lcode.c')
| -rw-r--r-- | lcode.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.c,v 2.45 2010/03/12 19:14:06 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 2.46 2010/04/17 12:46:32 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 | */ |
| @@ -514,7 +514,7 @@ int luaK_exp2RK (FuncState *fs, expdesc *e) { | |||
| 514 | case VTRUE: | 514 | case VTRUE: |
| 515 | case VFALSE: | 515 | case VFALSE: |
| 516 | case VNIL: { | 516 | case VNIL: { |
| 517 | if (fs->nk <= MAXINDEXRK) { /* constant fit in RK operand? */ | 517 | if (fs->nk <= MAXINDEXRK) { /* constant fits in RK operand? */ |
| 518 | e->u.s.info = (e->k == VNIL) ? nilK(fs) : boolK(fs, (e->k == VTRUE)); | 518 | e->u.s.info = (e->k == VNIL) ? nilK(fs) : boolK(fs, (e->k == VTRUE)); |
| 519 | e->k = VK; | 519 | e->k = VK; |
| 520 | return RKASK(e->u.s.info); | 520 | return RKASK(e->u.s.info); |
| @@ -527,7 +527,7 @@ int luaK_exp2RK (FuncState *fs, expdesc *e) { | |||
| 527 | /* go through */ | 527 | /* go through */ |
| 528 | } | 528 | } |
| 529 | case VK: { | 529 | case VK: { |
| 530 | if (e->u.s.info <= MAXINDEXRK) /* constant fit in argC? */ | 530 | if (e->u.s.info <= MAXINDEXRK) /* constant fits in argC? */ |
| 531 | return RKASK(e->u.s.info); | 531 | return RKASK(e->u.s.info); |
| 532 | else break; | 532 | else break; |
| 533 | } | 533 | } |
