From 401e862bf6ce9a4f34d3c06451e283ff45a8d000 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 3 Mar 2004 13:03:35 +0000 Subject: [PATCH] attempted typecase to silence the MIPSpro warning: cc-1506 cc: REMARK File = ../../curl/ares/ares__read_line.c, Line = 46 There is an implicit conversion from "unsigned long" to "int"; rounding, sign extension, or loss of accuracy may result. if (!fgets(*buf + offset, *bufsize - offset, fp)) --- ares__read_line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ares__read_line.c b/ares__read_line.c index f550a7ad..258f2f61 100644 --- a/ares__read_line.c +++ b/ares__read_line.c @@ -43,7 +43,7 @@ int ares__read_line(FILE *fp, char **buf, int *bufsize) while (1) { - if (!fgets(*buf + offset, *bufsize - offset, fp)) + if (!fgets(*buf + offset, *bufsize - (int)offset, fp)) return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF; len = offset + strlen(*buf + offset); if ((*buf)[len - 1] == '\n')