mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
(file_ops.c) Fix -Wsign_compare warning
This commit is contained in:
parent
da95df65d6
commit
ba28328e8b
@ -73,14 +73,14 @@
|
||||
*/
|
||||
bool write_file(const char *path, const void *data, ssize_t size)
|
||||
{
|
||||
bool ret = false;
|
||||
FILE *file = fopen(path, "wb");
|
||||
ssize_t ret = 0;
|
||||
FILE *file = fopen(path, "wb");
|
||||
if (!file)
|
||||
return false;
|
||||
|
||||
ret = fwrite(data, 1, size, file) == size;
|
||||
ret = fwrite(data, 1, size, file);
|
||||
fclose(file);
|
||||
return ret;
|
||||
return (ret == size);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user