Commit 144a5e72 authored by antirez's avatar antirez
Browse files

fixed an alignment problem with time_t is 32 bit, long is 64 bit, and arch is...

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
parent fdc0bde9
...@@ -478,7 +478,7 @@ int expireIfNeeded(redisDb *db, robj *key) { ...@@ -478,7 +478,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
void expireGenericCommand(redisClient *c, robj *key, robj *param, long offset) { void expireGenericCommand(redisClient *c, robj *key, robj *param, long offset) {
dictEntry *de; dictEntry *de;
time_t seconds; long seconds;
if (getLongFromObjectOrReply(c, param, &seconds, NULL) != REDIS_OK) return; if (getLongFromObjectOrReply(c, param, &seconds, NULL) != REDIS_OK) return;
......
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