diff options
author | Matt Stancliff <matt@genges.com> | 2015-01-05 12:26:40 -0500 |
---|---|---|
committer | Matt Stancliff <matt@genges.com> | 2015-01-05 16:53:22 -0500 |
commit | 0cacb485feeb5318bd09b013833ca6e9026a5cc0 (patch) | |
tree | 128f5a85a8ff57593b6c80e53e5b011d42b4643f | |
parent | 6a00a4643baaa920b182eb65ee82d9b8c23e3134 (diff) |
Fix sds building with C++
These should really just be macros to shut up our type system.
-rw-r--r-- | sds.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,12 +45,12 @@ struct sdshdr { }; static inline size_t sdslen(const sds s) { - struct sdshdr *sh = (void*)(s-sizeof *sh); + struct sdshdr *sh = (struct sdshdr *)(s-sizeof *sh); return sh->len; } static inline size_t sdsavail(const sds s) { - struct sdshdr *sh = (void*)(s-sizeof *sh); + struct sdshdr *sh = (struct sdshdr *)(s-sizeof *sh); return sh->free; } |