diff options
author | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2017-11-30 10:27:12 +0800 |
---|---|---|
committer | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2017-11-30 10:27:12 +0800 |
commit | 1b5f56d0428a8ea7cea4e6d501dbece7ff987578 (patch) | |
tree | dcb3f4c5eef3cc406416a1f76976229f3a703c55 | |
parent | 2d73cf236725e0f37394eed20640670a4888d426 (diff) | |
download | redis-1b5f56d0428a8ea7cea4e6d501dbece7ff987578.tar.gz |
aof: cast sdslen to ssize_t
-rw-r--r-- | src/aof.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |