mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
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.
This commit is contained in:
parent
dfebe439db
commit
c5feac2b5e
2 changed files with 2 additions and 10 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue