aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lmem.c b/lmem.c
index 32318815..33181016 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.50 2001/08/31 19:46:07 roberto Exp $ 2** $Id: lmem.c,v 1.51 2001/10/25 19:13:33 roberto Exp $
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*/
@@ -7,7 +7,6 @@
7 7
8#include <stdlib.h> 8#include <stdlib.h>
9 9
10#define LUA_PRIVATE
11#include "lua.h" 10#include "lua.h"
12 11
13#include "ldo.h" 12#include "ldo.h"
@@ -27,7 +26,7 @@
27 26
28 27
29void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems, 28void *luaM_growaux (lua_State *L, void *block, int *size, int size_elems,
30 int limit, const l_char *errormsg) { 29 int limit, const char *errormsg) {
31 void *newblock; 30 void *newblock;
32 int newsize = (*size)*2; 31 int newsize = (*size)*2;
33 if (newsize < MINSIZEARRAY) 32 if (newsize < MINSIZEARRAY)
@@ -54,7 +53,7 @@ void *luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size) {
54 block = NULL; 53 block = NULL;
55 } 54 }
56 else if (size >= MAX_SIZET) 55 else if (size >= MAX_SIZET)
57 luaD_error(L, l_s("memory allocation error: block too big")); 56 luaD_error(L, "memory allocation error: block too big");
58 else { 57 else {
59 block = l_realloc(block, oldsize, size); 58 block = l_realloc(block, oldsize, size);
60 if (block == NULL) { 59 if (block == NULL) {