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 cfbe74d5..f88e769e 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.46 2001/02/06 16:01:29 roberto Exp roberto $ 2** $Id: lmem.c,v 1.47 2001/02/20 18:15:33 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*/
@@ -23,7 +23,7 @@
23 23
24 24
25void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems, 25void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems,
26 int limit, const char *errormsg) { 26 int limit, const l_char *errormsg) {
27 void *newblock; 27 void *newblock;
28 int newsize = (*size)*2; 28 int newsize = (*size)*2;
29 if (newsize < MINPOWER2) 29 if (newsize < MINPOWER2)
@@ -49,7 +49,7 @@ void *luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size) {
49 block = NULL; 49 block = NULL;
50 } 50 }
51 else if (size >= MAX_SIZET) 51 else if (size >= MAX_SIZET)
52 luaD_error(L, "memory allocation error: block too big"); 52 luaD_error(L, l_s("memory allocation error: block too big"));
53 else { 53 else {
54 block = l_realloc(block, oldsize, size); 54 block = l_realloc(block, oldsize, size);
55 if (block == NULL) { 55 if (block == NULL) {