diff options
| author | not-a-robot <not-a-robot@rediger.net> | 2016-06-20 11:37:14 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-20 11:37:14 +0200 | 
| commit | 847f3fe5c7fd335aa66ed23e6aff47bf4c12e0aa (patch) | |
| tree | ac4dd2da2e95849c82f68985172c431a317a8de0 | |
| parent | ef372ed2f09ed1996e27a21d3a33ca7ff922ba0f (diff) | |
| parent | f5b32e24741f54ee7b064b05fea2c766aaa1123f (diff) | |
| download | hiredict-847f3fe5c7fd335aa66ed23e6aff47bf4c12e0aa.tar.xz | |
Auto merge of #428 - avatli:patch-1, r=badboy
Update sds.h
Fixing sds.h for building hiredis in cpp project
| -rw-r--r-- | sds.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -79,7 +79,7 @@ struct __attribute__ ((__packed__)) sdshdr64 {  #define SDS_TYPE_64 4  #define SDS_TYPE_MASK 7  #define SDS_TYPE_BITS 3 -#define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (void*)((s)-(sizeof(struct sdshdr##T))); +#define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T)));  #define SDS_HDR(T,s) ((struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T))))  #define SDS_TYPE_5_LEN(f) ((f)>>SDS_TYPE_BITS) | 
