Skip to content

Commit d22645b

Browse files
committed
fix PSI argument parsing
1 parent 3c94d35 commit d22645b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assembly_scanner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ NONNULL_PTR(const std::vector<NONNULL_PTR(std::vector<instruction>)>) assembly_s
165165
}
166166
arg_value = static_cast<int24_t>(ul);
167167
} else if (argument[0] == '#' && argument.size() == 2) {
168-
arg_value = static_cast<int24_t>(argument[1] - '0');
168+
arg_value = argument[1];
169169
if (arg_value < INT24_C(0) || arg_value > INT24_C(9)) {
170170
invalid_literal(argument);
171171
}

0 commit comments

Comments
 (0)