diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-12-07 12:43:55 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-12-07 12:43:55 -0200 |
| commit | c82087b8ddaf9b88221e06e368e6ef1317ece52f (patch) | |
| tree | 2bf85f863ef7b0d7a88605e43141ceef01fce3e3 | |
| parent | 138be5b843e6e56270ea0dba8bce5807fe226fce (diff) | |
| download | lua-c82087b8ddaf9b88221e06e368e6ef1317ece52f.tar.gz lua-c82087b8ddaf9b88221e06e368e6ef1317ece52f.tar.bz2 lua-c82087b8ddaf9b88221e06e368e6ef1317ece52f.zip | |
cast from 'bool' to 'int' (for C++)
| -rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 2.145 2011/11/28 17:25:16 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.146 2011/11/29 15:54:38 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 | */ |
| @@ -662,7 +662,7 @@ void luaV_execute (lua_State *L) { | |||
| 662 | TValue *rb = RKB(i); | 662 | TValue *rb = RKB(i); |
| 663 | TValue *rc = RKC(i); | 663 | TValue *rc = RKC(i); |
| 664 | Protect( | 664 | Protect( |
| 665 | if (equalobj(L, rb, rc) != GETARG_A(i)) | 665 | if (cast_int(equalobj(L, rb, rc)) != GETARG_A(i)) |
| 666 | ci->u.l.savedpc++; | 666 | ci->u.l.savedpc++; |
| 667 | else | 667 | else |
| 668 | donextjump(ci); | 668 | donextjump(ci); |
