From 06a94fb097d3fb090519ef9fc334cfa3a1035033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petri=20H=C3=A4kkinen?= Date: Thu, 18 Nov 2021 10:28:28 +0200 Subject: [PATCH] Clean up luaconf.h --- VM/include/luaconf.h | 2 +- VM/src/lobject.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;