Fix warning

This commit is contained in:
David Hrdlička
2025-09-02 10:28:58 +02:00
parent 41c91ae6b3
commit 54fc345ee5

View File

@@ -98,7 +98,7 @@ ddc_load_edid(char *path, uint8_t *buf, size_t size)
return 0;
};
if (temp[0] != 0xEF || temp[1] != 0xBB || temp[2] != 0xBF) {
if ((uint8_t) temp[0] != 0xEF || (uint8_t) temp[1] != 0xBB || (uint8_t) temp[2] != 0xBF) {
rewind(fp);
}