mirror of
https://github.com/RPCSX/SPIRV-Tools.git
synced 2024-12-12 13:45:48 +00:00
Avoid integer modulo by 1, to avoid warning
Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/349
This commit is contained in:
parent
033b7d00f0
commit
4dd4c14b80
@ -50,7 +50,7 @@ bool ReadFile(const char* filename, const char* mode, std::vector<T>* data) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (ftell(fp) % sizeof(T)) {
|
||||
if (sizeof(T) != 1 && (ftell(fp) % sizeof(T))) {
|
||||
fprintf(stderr, "error: corrupted word found in file '%s'\n", filename);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user