mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
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))
This commit is contained in:
parent
a8419d68b6
commit
213d64fbd7
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user