summaryrefslogtreecommitdiff
path: root/src/lobject.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2011-07-05 12:00:00 +0000
committerrepogen <>2011-07-05 12:00:00 +0000
commit76e52968cfea8eccaffae99512879d664796e6a6 (patch)
tree6105722d5a672f6bc2280bfd54f4e7b9531431cb /src/lobject.h
parentcc3a4be74122bb2c002798696730bca68d36fcc9 (diff)
downloadlua-github-5.2.0-beta-rc6.tar.gz
Lua 5.2.0-beta-rc65.2.0-beta-rc6
Diffstat (limited to 'src/lobject.h')
-rw-r--r--src/lobject.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lobject.h b/src/lobject.h
index 7f7a6830..d69d6153 100644
--- a/src/lobject.h
+++ b/src/lobject.h
@@ -1,5 +1,5 @@
/*
-** $Id: lobject.h,v 2.60 2011/06/13 14:13:06 roberto Exp $
+** $Id: lobject.h,v 2.61 2011/07/04 20:29:02 roberto Exp $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -275,14 +275,17 @@ typedef struct lua_TValue TValue;
#endif
#undef TValuefields
+#undef NILCONSTANT
#if defined(LUA_NANTRICKLE)
/* little endian */
#define TValuefields \
union { struct { Value v_; int tt_; } i; double d_; } u
+#define NILCONSTANT {{{NULL}, tag2tt(LUA_TNIL)}}
#else
/* big endian */
#define TValuefields \
union { struct { int tt_; Value v_; } i; double d_; } u
+#define NILCONSTANT {{tag2tt(LUA_TNIL), {NULL}}}
#endif
#undef numfield
@@ -294,9 +297,6 @@ typedef struct lua_TValue TValue;
#define tag2tt(t) (NNMARK | (t))
-#undef NILCONSTANT
-#define NILCONSTANT {{{NULL}, tag2tt(LUA_TNIL)}}
-
#undef val_
#define val_(o) ((o)->u.i.v_)
#undef num_