Fix Preconditions.check3rcRegisterCount

This commit is contained in:
Ben Gruver 2012-10-23 22:51:09 -07:00
parent e2f2c89ddc
commit d62490d669

View File

@ -136,7 +136,7 @@ public class Preconditions {
} }
public static int check3rcRegisterCount(int registerCount) { public static int check3rcRegisterCount(int registerCount) {
if ((registerCount & 0xFFFFFF00) == 0) { if ((registerCount & 0xFFFFFF00) != 0) {
throw new IllegalArgumentException( throw new IllegalArgumentException(
String.format("Invalid register count: %d. Must be between 0 and 255, inclusive.", registerCount)); String.format("Invalid register count: %d. Must be between 0 and 255, inclusive.", registerCount));
} }