aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmem.c b/lmem.c
index 435cceef..f3d4d309 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.52 2001/11/28 20:13:13 roberto Exp roberto $ 2** $Id: lmem.c,v 1.53 2002/04/22 14:40:23 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*/
@@ -58,7 +58,7 @@ void *luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size) {
58 block = l_realloc(block, oldsize, size); 58 block = l_realloc(block, oldsize, size);
59 if (block == NULL) { 59 if (block == NULL) {
60 if (L) 60 if (L)
61 luaD_error(L, NULL, LUA_ERRMEM); /* break run without error message */ 61 luaD_error(L, MEMERRMSG, LUA_ERRMEM);
62 else return NULL; /* error before creating state! */ 62 else return NULL; /* error before creating state! */
63 } 63 }
64 } 64 }