diff options
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.137 2002/10/22 18:07:55 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.138 2002/10/25 20:05:28 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -95,7 +95,6 @@ static void freeblock (void *block) { | |||
| 95 | 95 | ||
| 96 | 96 | ||
| 97 | void *debug_realloc (void *block, size_t oldsize, size_t size) { | 97 | void *debug_realloc (void *block, size_t oldsize, size_t size) { |
| 98 | lua_assert((oldsize == 0) == (block == NULL)); | ||
| 99 | lua_assert(oldsize == 0 || oldsize == *blocksize(block)); | 98 | lua_assert(oldsize == 0 || oldsize == *blocksize(block)); |
| 100 | /* ISO does not specify what realloc(NULL, 0) does */ | 99 | /* ISO does not specify what realloc(NULL, 0) does */ |
| 101 | lua_assert(block != NULL || size > 0); | 100 | lua_assert(block != NULL || size > 0); |
