mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Avoid signed vs unsigned comparason warning.
This commit is contained in:
parent
5899f6c16e
commit
bd804d3fe4
@ -1116,7 +1116,7 @@ store(nsurl *url,
|
||||
written = write(fd, data, datalen);
|
||||
|
||||
close(fd);
|
||||
if (written < datalen) {
|
||||
if (written < 0 || (size_t) written < datalen) {
|
||||
/** @todo Delete the file? */
|
||||
return NSERROR_SAVE_FAILED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user