Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed minor redundancy in bitwise.awk

 * bit_or was calcualting 2 ^ i twice.
  • Loading branch information...
commit 56cc77022335e2316a5021c3ca28ac5fcd30f6b4 1 parent b653d4e
@ssmccoy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/bitwise.awk
View
2  src/bitwise.awk
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.