summaryrefslogtreecommitdiff
path: root/src/sds.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-08-12 15:17:28 +0200
committerantirez <antirez@gmail.com>2014-08-13 10:53:51 +0200
commit68db7b1f564be07fa98f6102aefb33d941fc2cdc (patch)
tree8bae1efe4c7d375b6d54b1c29d0c5aae85523f9b /src/sds.h
parentcf85b5ba812070442c450b5dbc6c5e12a6c0819b (diff)
downloadredis-68db7b1f564be07fa98f6102aefb33d941fc2cdc.tar.gz
Use unsigned integers in SDS header.
This raises the max string to 4GB without any downside.
Diffstat (limited to 'src/sds.h')
-rw-r--r--src/sds.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sds.h b/src/sds.h
index 9a604021c..37aaf7a28 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -39,8 +39,8 @@
typedef char *sds;
struct sdshdr {
- int len;
- int free;
+ unsigned int len;
+ unsigned int free;
char buf[];
};