word x x &= $fff8
you can rewrite it as:
x = x & $fff8 as word
Or get the latest development compiler build from github, because the bug has been fixed there.
The problem only occurs when you're doing bitwise operations on a signed and unsigned value.