Commit bdbdb02e authored by antirez's avatar antirez
Browse files

Fixed bug breaking rdbSaveMillisecondTime() in 32 bit systems. Thanks to @anydot (Přemysl Hrubý)

parent 52d46855
...@@ -36,7 +36,7 @@ time_t rdbLoadTime(rio *rdb) { ...@@ -36,7 +36,7 @@ time_t rdbLoadTime(rio *rdb) {
return (time_t)t32; return (time_t)t32;
} }
int rdbSaveMillisecondTime(rio *rdb, time_t t) { int rdbSaveMillisecondTime(rio *rdb, long long t) {
int64_t t64 = (int64_t) t; int64_t t64 = (int64_t) t;
return rdbWriteRaw(rdb,&t64,8); return rdbWriteRaw(rdb,&t64,8);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment