aof: cast sdslen to ssize_t

This commit is contained in:
zhaozhao.zz 2017-11-30 10:27:12 +08:00 committed by antirez
parent de4fb877e8
commit 27d9c729e5

View File

@ -363,7 +363,7 @@ void flushAppendOnlyFile(int force) {
/* We performed the write so reset the postponed flush sentinel to zero. */
server.aof_flush_postponed_start = 0;
if (nwritten != (signed)sdslen(server.aof_buf)) {
if (nwritten != (ssize_t)sdslen(server.aof_buf)) {
static time_t last_write_error_log = 0;
int can_log = 0;