From bdbdb02edb5aff16c3cbfb0fba31152d69e30160 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 9 Nov 2011 18:47:48 +0100 Subject: [PATCH] =?utf8?q?Fixed=20bug=20breaking=20rdbSaveMillisecondTime(?= =?utf8?q?)=20in=2032=20bit=20systems.=20Thanks=20to=20@anydot=20(P=C5=99e?= =?utf8?q?mysl=20Hrub=C3=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdb.c b/src/rdb.c index e98ce996..bb9121c8 100644 --- 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); } -- 2.45.2