From 5a9f490ab1cf3f65682b9bc00e7b82a5e56a673e Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Tue, 12 Sep 2023 23:37:28 -0400 Subject: [PATCH] reverse romsize check (#338) --- extern/ZAPDUtils/Utils/BitConverter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }