diff options
-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; } |