diff options
-rw-r--r-- | compat/getdelim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/getdelim.c b/compat/getdelim.c index 84bef87b..1bedef7c 100644 --- a/compat/getdelim.c +++ b/compat/getdelim.c @@ -124,7 +124,7 @@ getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp) break; } (*lineptr)[cur_len] = '\0'; - result = cur_len ? cur_len : result; + result = cur_len ? (ssize_t) cur_len : result; unlock_return: funlockfile (fp); /* doesn't set errno */ |