mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Fixed bug breaking rdbSaveMillisecondTime() in 32 bit systems. Thanks to @anydot (Přemysl Hrubý)
This commit is contained in:
parent
52d46855d9
commit
bdbdb02edb
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user