aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lmem.c b/lmem.c
index e8c2e856..85ecead2 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.71 2006/07/11 15:53:29 roberto Exp roberto $ 2** $Id: lmem.c,v 1.72 2006/09/14 12:59:06 roberto Exp roberto $
3** Interface to Memory Manager 3** Interface to Memory Manager
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -45,12 +45,12 @@
45 45
46 46
47void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems, 47void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems,
48 int limit, const char *errormsg) { 48 int limit, const char *what) {
49 void *newblock; 49 void *newblock;
50 int newsize; 50 int newsize;
51 if (*size >= limit/2) { /* cannot double it? */ 51 if (*size >= limit/2) { /* cannot double it? */
52 if (*size >= limit) /* cannot grow even a little? */ 52 if (*size >= limit) /* cannot grow even a little? */
53 luaG_runerror(L, "%s overflow (limit is %d)", errormsg, limit); 53 luaG_runerror(L, "too many %s (limit is %d)", what, limit);
54 newsize = limit; /* still have at least one free place */ 54 newsize = limit; /* still have at least one free place */
55 } 55 }
56 else { 56 else {