]> git.saurik.com Git - redis.git/commitdiff
Fixed bug breaking rdbSaveMillisecondTime() in 32 bit systems. Thanks to @anydot...
authorantirez <antirez@gmail.com>
Wed, 9 Nov 2011 17:47:48 +0000 (18:47 +0100)
committerantirez <antirez@gmail.com>
Wed, 9 Nov 2011 17:47:48 +0000 (18:47 +0100)
src/rdb.c

index e98ce996e8271de67e1855f24e2509cd6d06bb08..bb9121c88f5e4b793339e08a07ae31ea676ebf29 100644 (file)
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -36,7 +36,7 @@ time_t rdbLoadTime(rio *rdb) {
     return (time_t)t32;
 }
 
-int rdbSaveMillisecondTime(rio *rdb, time_t t) {
+int rdbSaveMillisecondTime(rio *rdb, long long t) {
     int64_t t64 = (int64_t) t;
     return rdbWriteRaw(rdb,&t64,8);
 }