mirror of
https://github.com/gbdev/rgbds.git
synced 2026-11-21 21:48:39 +00:00
Use else if in checkNBit for symmetry with checkPatchSize
This commit is contained in:
1 parent
292f39deb3
commit
c5fe5f0762
1 file changed
+1
-2
+1
-2
@@ -496,8 +496,7 @@ bool checkNBit(int32_t v, uint8_t n, char const *name) {
|
||||
n == 8 && !name ? "; use `LOW()` to force 8-bit" : ""
|
||||
);
|
||||
return false;
|
||||
}
|
||||
if (v < -(1 << (n - 1))) {
|
||||
} else if (v < -(1 << (n - 1))) {
|
||||
warning(
|
||||
WARNING_TRUNCATION_2,
|
||||
"%s must be %u-bit%s",
|
||||
|
||||
Reference in new issue
Block a user