aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sds.c2
-rw-r--r--src/sds.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sds.c b/src/sds.c
index 96a6c4c..e68a401 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -200,7 +200,7 @@ size_t sdsAllocSize(sds s) {
* ... check for nread <= 0 and handle it ...
* sdsIncrLen(s, nread);
*/
-void sdsIncrLen(sds s, int incr) {
+void sdsIncrLen(sds s, size_t incr) {
struct sdshdr *sh = sdsheader(s);
assert(sh->free >= incr);
diff --git a/src/sds.h b/src/sds.h
index c0fe90e..a46b06b 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -94,7 +94,7 @@ sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen);
/* Low level functions exposed to the user API */
sds sdsMakeRoomFor(sds s, size_t addlen);
-void sdsIncrLen(sds s, int incr);
+void sdsIncrLen(sds s, size_t incr);
sds sdsRemoveFreeSpace(sds s);
size_t sdsAllocSize(sds s);