Skip to content

Commit

Permalink
Correct if statement in asap/xasm
Browse files Browse the repository at this point in the history
  • Loading branch information
NHellFire authored and spiff committed Oct 16, 2012
1 parent 2231b07 commit bc940e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asap/xasm/xasm.d
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ int operatorShiftLeft(int a, int b) {
if (b < 0) {
return operatorShiftRight(a, -b);
}
if (a != 0 & b >= 32) {
if (a != 0 && b >= 32) {
throw new AssemblyError("Arithmetic overflow");
}
long r = cast(long) a << b;
Expand Down

0 comments on commit bc940e8

Please sign in to comment.