From 28b2566c971ca407cff22126990684fa4da03298 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 22 Mar 2010 14:28:31 -0300 Subject: 'lua_assert' not visible from libraries --- lauxlib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lauxlib.c b/lauxlib.c index 81fdc18d..2efbbf74 100644 --- a/lauxlib.c +++ b/lauxlib.c @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.c,v 1.203 2010/03/17 21:37:37 roberto Exp roberto $ +** $Id: lauxlib.c,v 1.204 2010/03/19 21:04:17 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -397,8 +397,7 @@ LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { size_t space = bufffree(B); if (space == 0) { luaL_prepbuffer(B); - lua_assert(bufffree(B) == LUAL_BUFFERSIZE); - space = LUAL_BUFFERSIZE; + space = LUAL_BUFFERSIZE; /* bufffree(B) == LUAL_BUFFERSIZE */ } if (space > l) space = l; memcpy(B->p, s, space); -- cgit v1.2.3-55-g6feb