A minor fix to intervalheap.h

This commit is contained in:
Leonardo committed 2019-09-27 00:06:26 -03:00
1 parent b300c889f3
commit dea77b5ca2
1 file changed
+3
+3
View File
@@ -171,6 +171,9 @@ static const char *cmc_string_fmt_intervalheap = "%s at %p { buffer:%p, capacity
\
SNAME *PFX##_new(size_t capacity, int (*compare)(V, V)) \
{ \
if (capacity == 0 || capacity == UINT64_MAX) \
return NULL; \
\
SNAME *_heap_ = malloc(sizeof(SNAME)); \
\
if (!_heap_) \