Skip to content

Commit

Permalink
Fix the comparison operators having the wrong priority
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Jul 27, 2024
1 parent 5f71ec4 commit 035291b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Core/debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 035291b

Please sign in to comment.