diff --git a/extern/ZAPDUtils/Utils/BitConverter.h b/extern/ZAPDUtils/Utils/BitConverter.h index 9aaf6e766..46845fe36 100644 --- a/extern/ZAPDUtils/Utils/BitConverter.h +++ b/extern/ZAPDUtils/Utils/BitConverter.h @@ -184,7 +184,7 @@ class BitConverter // Rewrites the rom data in-place to be in BigEndian/z64 format static inline void RomToBigEndian(uint8_t* rom, size_t romSize) { - if (romSize > 0) { + if (romSize <= 0) { return; }