Fix the comparison operators having the wrong priority

This commit is contained in:
Lior Halphon
2024-07-27 22:39:56 +03:00
parent 5f71ec4974
commit 035291b955

View File

@@ -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,