From aa51dbc61245d5b4949c1872b3d3e915a981ded3 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 6 May 2018 21:27:47 -0400 Subject: [PATCH] Fix #511: eliminate "Left shift of negative value" warnings --- engine/events/magnet_train.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/events/magnet_train.asm b/engine/events/magnet_train.asm index 6f2aa2d1f..2415fa1a0 100644 --- a/engine/events/magnet_train.asm +++ b/engine/events/magnet_train.asm @@ -4,13 +4,13 @@ MagnetTrain: ; 8cc04 jr nz, .ToGoldenrod ld a, 1 ; forwards lb bc, $40, $60 - lb de, (11 * 8) - (11 * 8 + 4), -$60 + lb de, ((11 * 8) - (11 * 8 + 4)), -$60 jr .continue .ToGoldenrod: ld a, -1 ; backwards lb bc, -$40, -$60 - lb de, (11 * 8) + (11 * 8 + 4), $60 + lb de, ((11 * 8) + (11 * 8 + 4)), $60 .continue ld h, a