From 898d117ceb90fea0fd5fd16fd1847e28ff2e11f4 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 7 Apr 2017 17:29:50 +0200 Subject: [PATCH] Fix issue with C++ (missing brackets) --- m-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-core.h b/m-core.h index efc2f871..2d54b2e3 100644 --- a/m-core.h +++ b/m-core.h @@ -945,7 +945,7 @@ m_core_hash (const void *str, size_t wrdlen) # define M_MEMORY_ALLOC(type) ((type*)std::malloc (sizeof (type))) # define M_MEMORY_DEL(ptr) std::free(ptr) # define M_MEMORY_REALLOC(type, ptr, n) \ - ((type*) M_UNLIKELY ((n) > SIZE_MAX / sizeof(type)) ? NULL : std::realloc ((ptr), (n)*sizeof (type))) + ((type*) (M_UNLIKELY ((n) > SIZE_MAX / sizeof(type)) ? NULL : std::realloc ((ptr), (n)*sizeof (type)))) # define M_MEMORY_FREE(ptr) std::free(ptr) #else # include