From: antirez Date: Thu, 7 Oct 2010 14:21:35 +0000 (+0200) Subject: fixed an alignment problem with time_t is 32 bit, long is 64 bit, and arch is sparc... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/144a5e72f2adc9d151438569f680533e41778504 fixed an alignment problem with time_t is 32 bit, long is 64 bit, and arch is sparc or any other where unaligned accesses will result to sigbus --- diff --git a/src/db.c b/src/db.c index 470310a3..44507847 100644 --- a/src/db.c +++ b/src/db.c @@ -478,7 +478,7 @@ int expireIfNeeded(redisDb *db, robj *key) { void expireGenericCommand(redisClient *c, robj *key, robj *param, long offset) { dictEntry *de; - time_t seconds; + long seconds; if (getLongFromObjectOrReply(c, param, &seconds, NULL) != REDIS_OK) return;