Permalink
Browse files

Fixed minor redundancy in bitwise.awk

 * bit_or was calcualting 2 ^ i twice.
  • Loading branch information...
1 parent b653d4e commit 56cc77022335e2316a5021c3ca28ac5fcd30f6b4 @ssmccoy committed Dec 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/bitwise.awk
View
@@ -63,7 +63,7 @@ function bit_or (a, b, r, i, ia, ib) {
ia = int(a / c) % 2
ib = int(b / c) % 2
- r += (ia || ib) * 2^i
+ r += (ia || ib) * c
}
return r

0 comments on commit 56cc770

Please sign in to comment.