SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 035291b955133ecf2b077a8b90711e7d2b3cb006 parent 5f71ec4974343b3ab5132807f1cbdb8100724698 Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 27 Jul 2024 22:39:56 +0300 Fix the comparison operators having the wrong priority Diffstat:
| M | Core/debugger.c | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git 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,
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.