diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 17:32:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 17:32:16 -0300 |
commit | dfd7ce74cf040dba710657963db0144201823670 (patch) | |
tree | 72117e389dbb172a0cd464c1d74e917c3e106f47 /ldebug.c | |
parent | 8399df5dcf40d078cc6b0fa4df640ef0fc49b5be (diff) | |
download | lua-dfd7ce74cf040dba710657963db0144201823670.tar.gz lua-dfd7ce74cf040dba710657963db0144201823670.tar.bz2 lua-dfd7ce74cf040dba710657963db0144201823670.zip |
buffer should be void *, as char now is not that neutral...
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.68 2001/02/22 18:59:59 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.69 2001/02/23 17:17:25 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -366,7 +366,7 @@ static Instruction luaG_symbexec (lua_State *L, const Proto *pt, | |||
366 | int pc; | 366 | int pc; |
367 | if (stackpos < 0) { /* full check? */ | 367 | if (stackpos < 0) { /* full check? */ |
368 | int i; | 368 | int i; |
369 | sl = (lu_byte *)luaO_openspace(L, pt->sizecode); | 369 | sl = luaO_openspace(L, pt->sizecode, lu_byte); |
370 | for (i=0; i<pt->sizecode; i++) /* initialize stack-level array */ | 370 | for (i=0; i<pt->sizecode; i++) /* initialize stack-level array */ |
371 | sl[i] = SL_EMPTY; | 371 | sl[i] = SL_EMPTY; |
372 | check(precheck(pt)); | 372 | check(precheck(pt)); |