diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-30 15:49:19 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-30 15:49:19 -0200 |
commit | d1c689af402e847f77dbe164265e097e90bdc61a (patch) | |
tree | 15280b1d60381277d904049ced37b07ded8ad6ac /lstring.h | |
parent | 37e9c2e74486ed443151430a9b73a3844d3554ef (diff) | |
download | lua-github-d1c689af402e847f77dbe164265e097e90bdc61a.tar.gz |
subtelties in layout of TString
Diffstat (limited to 'lstring.h')
-rw-r--r-- | lstring.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lstring.h,v 1.22 2000/09/29 12:42:13 roberto Exp roberto $ +** $Id: lstring.h,v 1.23 2000/10/26 12:47:05 roberto Exp roberto $ ** String table (keep all strings handled by Lua) ** See Copyright Notice in lua.h */ @@ -20,7 +20,8 @@ #define RESERVEDMARK 3 -#define sizestring(l) (sizeof(TString)+(lint32)(l)*sizeof(char)) +#define sizestring(l) ((long)sizeof(TString) + \ + ((long)(l+1)-TSPACK)*(long)sizeof(char)) void luaS_init (lua_State *L); |