X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/67a1810b324c9f140891d4aa5b80133b66cf9a70..aff255c81df8bd27ff53a21dd7ece5595f2ed8a9:/src/zmalloc.c diff --git a/src/zmalloc.c b/src/zmalloc.c index ed19616b..aa3ccfe9 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -186,7 +186,7 @@ size_t zmalloc_used_memory(void) { } size_t zmalloc_allocations_for_size(size_t size) { - if (size > ZMALLOC_MAX_ALLOC_STAT || size < 0) return 0; + if (size > ZMALLOC_MAX_ALLOC_STAT) return 0; return zmalloc_allocations[size]; } @@ -262,7 +262,7 @@ size_t zmalloc_get_rss(void) { return t_info.resident_size; } #else -float zmalloc_get_rss(void) { +size_t zmalloc_get_rss(void) { /* If we can't get the RSS in an OS-specific way for this system just * return the memory usage we estimated in zmalloc().. *