mirror of
https://github.com/lua/lua.git
synced 2025-01-14 05:43:00 +08:00
typo in comment
This commit is contained in:
parent
8287a0db55
commit
7a3de1aba3
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lauxlib.c,v 1.244 2012/05/31 20:28:45 roberto Exp roberto $
|
** $Id: lauxlib.c,v 1.245 2012/08/16 17:32:20 roberto Exp roberto $
|
||||||
** Auxiliary functions for building Lua libraries
|
** Auxiliary functions for building Lua libraries
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -438,7 +438,7 @@ LUALIB_API char *luaL_prepbuffsize (luaL_Buffer *B, size_t sz) {
|
|||||||
if (B->size - B->n < sz) { /* not enough space? */
|
if (B->size - B->n < sz) { /* not enough space? */
|
||||||
char *newbuff;
|
char *newbuff;
|
||||||
size_t newsize = B->size * 2; /* double buffer size */
|
size_t newsize = B->size * 2; /* double buffer size */
|
||||||
if (newsize - B->n < sz) /* not bit enough? */
|
if (newsize - B->n < sz) /* not big enough? */
|
||||||
newsize = B->n + sz;
|
newsize = B->n + sz;
|
||||||
if (newsize < B->n || newsize - B->n < sz)
|
if (newsize < B->n || newsize - B->n < sz)
|
||||||
luaL_error(L, "buffer too large");
|
luaL_error(L, "buffer too large");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user