diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-03-13 14:14:40 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-03-13 14:14:40 -0300 |
| commit | c5feac2b5edf86aa9bdc4b8acd5380f2fe9e197f (patch) | |
| tree | a1e8a11973681bc207060809a9cb7119abdc22c1 /lstring.h | |
| parent | dfebe439db76b5c9fd9b4e3877857e2449c8ad87 (diff) | |
| download | lua-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 '')
| -rw-r--r-- | lstring.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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)) |
