From c5feac2b5edf86aa9bdc4b8acd5380f2fe9e197f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Mar 2019 14:14:40 -0300 Subject: Strings inside Lua are not fully aligned Removed code to ensure that strings inside Lua (as returned by 'lua_tolstring') always start in fully aligned addresses. Since version 5.3 the documentation does not ensure that. --- lstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lstring.h') diff --git a/lstring.h b/lstring.h index e7e4aedc..b2550218 100644 --- a/lstring.h +++ b/lstring.h @@ -19,7 +19,7 @@ #define MEMERRMSG "not enough memory" -#define sizelstring(l) (sizeof(union UTString) + ((l) + 1) * sizeof(char)) +#define sizelstring(l) (sizeof(TString) + ((l) + 1) * sizeof(char)) #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ (sizeof(s)/sizeof(char))-1)) -- cgit v1.2.3-55-g6feb