The `SCANBIT` macro was not using `row` and `col` properly: if either was anything else than a number (such as `col - 8`), the macro did not expand them correctly, preserving operator precedence. As such, the right-hand side SCANBITs were broken when used with masking, because the masking code uses `SCANBIT(row, col - 8)`, and the `(7 - col)` part would expand to `(7 - col - 8)` which is very different than `(7 - (col - 8))`. This patch addresses the issue. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>pull/365/head
parent
3571a56ae6
commit
0a566eb58f
Loading…
Reference in new issue