Use unsigned integers in SDS header.

This raises the max string to 4GB without any downside.
This commit is contained in:
antirez
2014-08-12 15:17:28 +02:00
parent cf85b5ba81
commit 68db7b1f56
4 changed files with 15 additions and 9 deletions

View File

@ -39,8 +39,8 @@
typedef char *sds;
struct sdshdr {
int len;
int free;
unsigned int len;
unsigned int free;
char buf[];
};