fix some compiler warnings

This commit is contained in:
Pierre Chapuis
2016-06-05 15:34:43 +02:00
parent 550fa7e14f
commit 188d90fc87
3 changed files with 17 additions and 10 deletions

View File

@ -736,7 +736,7 @@ ssize_t rdbSaveObject(rio *rdb, robj *o) {
/* Then write the module-specific representation. */
mt->rdb_save(&io,mv->value);
return io.error ? -1 : io.bytes;
return io.error ? -1 : (ssize_t)io.bytes;
} else {
serverPanic("Unknown object type");
}