aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNHellFire <nathan.renniewaldock@gmail.com>2012-10-12 14:55:45 +0100
committerspiff <spiff@xbmc.org>2012-10-16 18:34:17 +0200
commitbc940e82d5b0e5b98c5e5387d82ee280ee253348 (patch)
tree2b2b6f936ecdc0048264e2990daec8898dc860cc
parent2231b073aaef705615d8b2ebd89c7bbdb20c0385 (diff)
Correct if statement in asap/xasm
-rw-r--r--lib/asap/xasm/xasm.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asap/xasm/xasm.d b/lib/asap/xasm/xasm.d
index d9f133c1f0..150beddf18 100644
--- a/lib/asap/xasm/xasm.d
+++ b/lib/asap/xasm/xasm.d
@@ -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;