]> git.saurik.com Git - redis.git/commitdiff
Rearrange redisObject struct to reduce memory usage in 64bit environments (as recomme...
authorBob Potter <bobby.potter@gmail.com>
Tue, 7 Apr 2009 23:40:33 +0000 (18:40 -0500)
committerBob Potter <bobby.potter@gmail.com>
Tue, 7 Apr 2009 23:40:33 +0000 (18:40 -0500)
redis.c

diff --git a/redis.c b/redis.c
index 438f5fda1252b1bc839a183caaf04deb1ce722dc..05a623d56086ae2d2ef7e30d3e9c9fb932b0442d 100644 (file)
--- a/redis.c
+++ b/redis.c
 
 /* A redis object, that is a type able to hold a string / list / set */
 typedef struct redisObject {
-    int type;
     void *ptr;
+    int type;
     int refcount;
 } robj;