Skip to content

Commit

Permalink
reverse romsize check (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archez authored Sep 13, 2023
1 parent 8a4c70a commit 5a9f490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/ZAPDUtils/Utils/BitConverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5a9f490

Please sign in to comment.