Skip to content

Commit

Permalink
fix PSI argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrk24 committed Sep 29, 2024
1 parent 3c94d35 commit d22645b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assembly_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ NONNULL_PTR(const std::vector<NONNULL_PTR(std::vector<instruction>)>) assembly_s
}
arg_value = static_cast<int24_t>(ul);
} else if (argument[0] == '#' && argument.size() == 2) {
arg_value = static_cast<int24_t>(argument[1] - '0');
arg_value = argument[1];
if (arg_value < INT24_C(0) || arg_value > INT24_C(9)) {
invalid_literal(argument);
}
Expand Down

0 comments on commit d22645b

Please sign in to comment.