mirror of
https://github.com/open-goal/jak-project
synced 2026-09-03 10:21:36 -04:00
[decompiler] maybe fix symbol decompile issue (#776)
* maybe fix symbol decompile issue * try again on a label * allow int to float on seconds
This commit is contained in:
@@ -1800,7 +1800,7 @@ void SimpleExpressionElement::update_from_stack_int_to_float(const Env& env,
|
||||
auto fpr_convert_matcher =
|
||||
Matcher::op(GenericOpMatcher::fixed(FixedOperatorKind::GPR_TO_FPR), {Matcher::any(0)});
|
||||
auto type = env.get_types_before_op(var.idx()).get(var.reg()).typespec();
|
||||
if (type == TypeSpec("int") || type == TypeSpec("uint")) {
|
||||
if (type == TypeSpec("int") || type == TypeSpec("uint") || type == TypeSpec("seconds")) {
|
||||
auto mr = match(fpr_convert_matcher, arg);
|
||||
if (mr.matched) {
|
||||
arg = mr.maps.forms.at(0);
|
||||
|
||||
Reference in New Issue
Block a user