diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-07 17:15:24 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-07 17:15:24 -0200 |
commit | e7a9c45a4847d3ce058ac0e6051308591e7caf00 (patch) | |
tree | a802304497cd206432adc56a4f5bd1ab979c22d2 /lobject.c | |
parent | fd6c1f489862d8ecf7055ca18898fffd006711fa (diff) | |
download | lua-e7a9c45a4847d3ce058ac0e6051308591e7caf00.tar.gz lua-e7a9c45a4847d3ce058ac0e6051308591e7caf00.tar.bz2 lua-e7a9c45a4847d3ce058ac0e6051308591e7caf00.zip |
trying to avoid assumption that sizeof(char)==1
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 2.44 2010/12/06 21:08:36 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.45 2010/12/10 19:03:46 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -265,7 +265,7 @@ const char *luaO_pushfstring (lua_State *L, const char *fmt, ...) { | |||
265 | 265 | ||
266 | 266 | ||
267 | 267 | ||
268 | #define LL(x) (sizeof(x) - 1) | 268 | #define LL(x) ((sizeof(x) - 1)/sizeof(char)) |
269 | #define RETS "..." | 269 | #define RETS "..." |
270 | #define PRE "[string \"" | 270 | #define PRE "[string \"" |
271 | #define POS "\"]" | 271 | #define POS "\"]" |