diff options
-rw-r--r-- | src/ahoy/emulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ahoy/emulator.c b/src/ahoy/emulator.c index c805fcd..63d3514 100644 --- a/src/ahoy/emulator.c +++ b/src/ahoy/emulator.c @@ -175,7 +175,7 @@ opexec(uint16_t op) c8.V[x] = c8.V[y] - c8.V[x]; break; case 0xE: - c8.V[0xF] = c8.V[x] & 0x80; + c8.V[0xF] = (bool)(c8.V[x] & 0x80); c8.V[x] <<= 1; break; default: |