diff options
author | antirez <antirez@gmail.com> | 2014-08-12 15:17:28 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-08-13 10:53:51 +0200 |
commit | 68db7b1f564be07fa98f6102aefb33d941fc2cdc (patch) | |
tree | 8bae1efe4c7d375b6d54b1c29d0c5aae85523f9b /src/sds.h | |
parent | cf85b5ba812070442c450b5dbc6c5e12a6c0819b (diff) | |
download | redis-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,8 +39,8 @@ typedef char *sds; struct sdshdr { - int len; - int free; + unsigned int len; + unsigned int free; char buf[]; }; |