fix: unsigned comparison
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ bool file_update(File *file) {
|
|||||||
}
|
}
|
||||||
// read file
|
// read file
|
||||||
read_length = fread(file->content, sizeof(char), length, file_pointer);
|
read_length = fread(file->content, sizeof(char), length, file_pointer);
|
||||||
if (read_length != length) {
|
if (read_length != (unsigned)length) {
|
||||||
file->error = true;
|
file->error = true;
|
||||||
fclose(file_pointer);
|
fclose(file_pointer);
|
||||||
log_error("Cannot read complete file '%s'", file->path);
|
log_error("Cannot read complete file '%s'", file->path);
|
||||||
|
|||||||
Reference in New Issue
Block a user