A trivial change makes the new implementation O(log(N)) instead of O(log(N))+O(M...
[redis.git] / sds.h
diff --git a/sds.h b/sds.h
index 582cb2f34773988d0793089687c3b4dd11537555..0fc2c9281ba9e9153395cc0c33169fc5deb86833 100644 (file)
--- a/sds.h
+++ b/sds.h
 #define __SDS_H
 
 #include <sys/types.h>
-#include <limits.h>
 
 typedef char *sds;
 
 struct sdshdr {
-    int len;
-    unsigned short free;
-    unsigned short _len; /* USHRT_MAX if it is a "long" sds string */
+    long len;
+    long free;
     char buf[];
 };