diff --git a/VM/include/luaconf.h b/VM/include/luaconf.h index 29c31f40..b5f4cb12 100644 --- a/VM/include/luaconf.h +++ b/VM/include/luaconf.h @@ -131,4 +131,4 @@ #define LUA_VECTOR_SIZE 3 #endif -#define LUA_EXTRA_VALUE_SIZE LUA_VECTOR_SIZE - 2 // note: this assumes vector size >= 2! \ No newline at end of file +#define LUA_EXTRA_SIZE LUA_VECTOR_SIZE - 2 diff --git a/VM/src/lobject.h b/VM/src/lobject.h index cac1e5f4..5ed64736 100644 --- a/VM/src/lobject.h +++ b/VM/src/lobject.h @@ -47,7 +47,7 @@ typedef union typedef struct lua_TValue { Value value; - int extra[LUA_EXTRA_VALUE_SIZE]; + int extra[LUA_EXTRA_SIZE]; int tt; } TValue; @@ -377,7 +377,7 @@ typedef struct Closure typedef struct TKey { ::Value value; - int extra[LUA_EXTRA_VALUE_SIZE]; + int extra[LUA_EXTRA_SIZE]; unsigned tt : 4; int next : 28; /* for chaining */ } TKey;