diff options
-rw-r--r-- | lobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.49 2011/04/07 16:11:57 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.50 2011/05/03 16:01:57 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -164,7 +164,7 @@ typedef struct lua_TValue { | |||
164 | #define setfvalue(obj,x) \ | 164 | #define setfvalue(obj,x) \ |
165 | { TValue *io_=(obj); io_->value_.f=(x); io_->tt_=LUA_TLCF; } | 165 | { TValue *io_=(obj); io_->value_.f=(x); io_->tt_=LUA_TLCF; } |
166 | 166 | ||
167 | #define changenvalue(o,x) check_exp((o)->tt_==LUA_TNUMBER, (o)->value_.n=(x)) | 167 | #define changenvalue(o,x) check_exp(ttisnumber(o), (o)->value_.n=(x)) |
168 | 168 | ||
169 | #define setpvalue(obj,x) \ | 169 | #define setpvalue(obj,x) \ |
170 | { TValue *io_=(obj); io_->value_.p=(x); io_->tt_=LUA_TLIGHTUSERDATA; } | 170 | { TValue *io_=(obj); io_->value_.p=(x); io_->tt_=LUA_TLIGHTUSERDATA; } |