diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.133 2005/05/17 19:49:15 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.134 2005/05/25 13:21:26 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -338,7 +338,7 @@ static const char *pushnexttemplate (lua_State *L, const char *path) { | |||
338 | LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p, | 338 | LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p, |
339 | const char *r) { | 339 | const char *r) { |
340 | const char *wild; | 340 | const char *wild; |
341 | int l = strlen(p); | 341 | size_t l = strlen(p); |
342 | luaL_Buffer b; | 342 | luaL_Buffer b; |
343 | luaL_buffinit(L, &b); | 343 | luaL_buffinit(L, &b); |
344 | while ((wild = strstr(s, p)) != NULL) { | 344 | while ((wild = strstr(s, p)) != NULL) { |