From 035291b955133ecf2b077a8b90711e7d2b3cb006 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 27 Jul 2024 22:39:56 +0300 Subject: [PATCH] Fix the comparison operators having the wrong priority --- Core/debugger.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Core/debugger.c b/Core/debugger.c index 7c9634ca7..8d6c131bc 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -358,15 +358,15 @@ static struct { {"&", 1, and}, {"^", 1, xor}, {"<<", 2, shleft}, - {"<=", 3, lower_equals}, - {"<", 3, lower}, + {"<=", -2, lower_equals}, + {"<", -2, lower}, {">>", 2, shright}, - {">=", 3, greater_equals}, - {">", 3, greater}, - {"==", 3, equals}, + {">=", -2, greater_equals}, + {">", -2, greater}, + {"==", -2, equals}, {"=", -1, NULL, assign}, - {"!=", 3, different}, - {":", 4, bank}, + {"!=", -2, different}, + {":", 3, bank}, }; value_t debugger_evaluate(GB_gameboy_t *gb, const char *string,