Skip to content

Commit

Permalink
small bug fix for inequality comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
JustasMasiulis committed Apr 24, 2022
1 parent b739e70 commit 9b3dd5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ inline void handle_comparison( cexpr_t* expr )
access->ea = expr->ea;
}

merge_accesses( replacement, access, cot_land, expr->ea, tinfo_t{ BTF_BOOL } );
merge_accesses( replacement, access, expr->op == cot_eq ? cot_land : cot_lor, expr->ea, tinfo_t{ BTF_BOOL } );
}, info.underlying_expr->type, info.mask );

replace_or_delete( expr, replacement, success );
Expand Down

0 comments on commit 9b3dd5c

Please sign in to comment.