summaryrefslogtreecommitdiff
path: root/qstd
diff options
context:
space:
mode:
Diffstat (limited to 'qstd')
-rw-r--r--qstd/memory.c2
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;