From: antirez Date: Sat, 31 Oct 2009 22:03:10 +0000 (+0100) Subject: Fixed Issue 83:Using TYPE on a zset results in a malformed response from the Redis... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/412a8bcea3e2329ee255174d68b6760416cc3a59?ds=sidebyside Fixed Issue 83:Using TYPE on a zset results in a malformed response from the Redis server --- diff --git a/redis.c b/redis.c index d6d2e449..da7937ad 100644 --- a/redis.c +++ b/redis.c @@ -3105,6 +3105,7 @@ static void typeCommand(redisClient *c) { case REDIS_STRING: type = "+string"; break; case REDIS_LIST: type = "+list"; break; case REDIS_SET: type = "+set"; break; + case REDIS_ZSET: type = "+zset"; break; default: type = "unknown"; break; } } diff --git a/zmalloc.c b/zmalloc.c index d4532381..eb06da3b 100644 --- a/zmalloc.c +++ b/zmalloc.c @@ -42,7 +42,7 @@ static size_t used_memory = 0; static void zmalloc_oom(size_t size) { - fprintf(stderr, "zmalloc: Out of memory trying to allocate %lu bytes\n", + fprintf(stderr, "zmalloc: Out of memory trying to allocate %zu bytes\n", size); fflush(stderr); abort();