fix: unsigned comparison

This commit is contained in:
2026-05-16 16:02:53 +02:00
parent 20e3d39963
commit 0fd78bf4cc
+1 -1
View File
@@ -65,7 +65,7 @@ bool file_update(File *file) {
}
// read file
read_length = fread(file->content, sizeof(char), length, file_pointer);
if (read_length != length) {
if (read_length != (unsigned)length) {
file->error = true;
fclose(file_pointer);
log_error("Cannot read complete file '%s'", file->path);