From edca2b14d213c31da9e7a919f6b898f3ea8abea8 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 13 Aug 2014 11:44:38 +0200 Subject: Remove warnings and improve integer sign correctness. --- src/dict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dict.c') diff --git a/src/dict.c b/src/dict.c index b27920a44..42e75fc22 100644 --- a/src/dict.c +++ b/src/dict.c @@ -668,9 +668,9 @@ dictEntry *dictGetRandomKey(dict *d) * statistics. However the function is much faster than dictGetRandomKey() * at producing N elements, and the elements are guaranteed to be non * repeating. */ -int dictGetRandomKeys(dict *d, dictEntry **des, int count) { +unsigned int dictGetRandomKeys(dict *d, dictEntry **des, unsigned int count) { int j; /* internal hash table id, 0 or 1. */ - int stored = 0; + unsigned int stored = 0; if (dictSize(d) < count) count = dictSize(d); while(stored < count) { -- cgit v1.2.1