diff options
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.108 2000/05/08 19:32:53 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.109 2000/05/09 14:50:16 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -273,7 +273,7 @@ static void passresults (lua_State *L) { | |||
273 | } | 273 | } |
274 | 274 | ||
275 | void luaB_dostring (lua_State *L) { | 275 | void luaB_dostring (lua_State *L) { |
276 | long l; | 276 | size_t l; |
277 | const char *s = luaL_check_lstr(L, 1, &l); | 277 | const char *s = luaL_check_lstr(L, 1, &l); |
278 | if (*s == ID_CHUNK) | 278 | if (*s == ID_CHUNK) |
279 | lua_error(L, "`dostring' cannot run pre-compiled code"); | 279 | lua_error(L, "`dostring' cannot run pre-compiled code"); |
@@ -633,7 +633,6 @@ static const struct luaL_reg builtin_funcs[] = { | |||
633 | 633 | ||
634 | void luaB_predefine (lua_State *L) { | 634 | void luaB_predefine (lua_State *L) { |
635 | /* pre-register mem error messages, to avoid loop when error arises */ | 635 | /* pre-register mem error messages, to avoid loop when error arises */ |
636 | luaS_newfixed(L, tableEM); | ||
637 | luaS_newfixed(L, memEM); | 636 | luaS_newfixed(L, memEM); |
638 | luaL_openl(L, builtin_funcs); | 637 | luaL_openl(L, builtin_funcs); |
639 | #ifdef DEBUG | 638 | #ifdef DEBUG |