Fix logic mistake

This commit is contained in:
cgm616 2020-10-25 09:34:46 -04:00
parent 0c0f8db347
commit e7e4b35bdf

View File

@ -368,7 +368,7 @@ impl LiteralDigitGrouping {
let first = groups.next().expect("At least one group");
if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 || i != 2) {
if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 && i != 2) {
return Err(WarningType::UnusualByteGrouping);
}