diff options
Diffstat (limited to 'qstd/memory.c')
-rw-r--r-- | qstd/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qstd/memory.c b/qstd/memory.c index 61c5911..1dac1c5 100644 --- a/qstd/memory.c +++ b/qstd/memory.c @@ -45,7 +45,7 @@ void* imp_arena_alloc( int size ) { char* r; - assert(a->ptr + size < a->size); + assert(a->ptr + size <= a->size); r = &a->buf[a->ptr]; a->ptr += size; return r; |