summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rio.c b/src/rio.c
index 3513e1889..2083486c2 100644
--- a/src/rio.c
+++ b/src/rio.c
@@ -167,7 +167,7 @@ void rioInitWithFile(rio *r, FILE *fp) {
* if there is some pending buffer, so this function is also used in order
* to implement rioFdsetFlush(). */
static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) {
- size_t retval;
+ ssize_t retval;
int j;
unsigned char *p = (unsigned char*) buf;
int doflush = (buf == NULL && len == 0);