aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-03-13 14:14:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-03-13 14:14:40 -0300
commitc5feac2b5edf86aa9bdc4b8acd5380f2fe9e197f (patch)
treea1e8a11973681bc207060809a9cb7119abdc22c1 /lstring.h
parentdfebe439db76b5c9fd9b4e3877857e2449c8ad87 (diff)
downloadlua-c5feac2b5edf86aa9bdc4b8acd5380f2fe9e197f.tar.gz
lua-c5feac2b5edf86aa9bdc4b8acd5380f2fe9e197f.tar.bz2
lua-c5feac2b5edf86aa9bdc4b8acd5380f2fe9e197f.zip
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.
Diffstat (limited to 'lstring.h')
-rw-r--r--lstring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstring.h b/lstring.h
index e7e4aedc..b2550218 100644
--- a/lstring.h
+++ b/lstring.h
@@ -19,7 +19,7 @@
19#define MEMERRMSG "not enough memory" 19#define MEMERRMSG "not enough memory"
20 20
21 21
22#define sizelstring(l) (sizeof(union UTString) + ((l) + 1) * sizeof(char)) 22#define sizelstring(l) (sizeof(TString) + ((l) + 1) * sizeof(char))
23 23
24#define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 24#define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \
25 (sizeof(s)/sizeof(char))-1)) 25 (sizeof(s)/sizeof(char))-1))