Skip to content

Commit 6a827a4

Browse files
committed
fix fencepost error in arena malloc
1 parent 955e66d commit 6a827a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stringdtype/stringdtype/src/static_string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ char *
109109
npy_string_arena_malloc(npy_string_arena *arena, npy_string_realloc_func r,
110110
size_t size)
111111
{
112-
if ((arena->size - arena->cursor) <= size) {
112+
if ((arena->size - arena->cursor) < size) {
113113
// realloc the buffer so there is enough room
114114
// first guess is to double the size of the buffer
115115
size_t newsize;

0 commit comments

Comments
 (0)