Skip to content

Commit

Permalink
Remove special case in _type_fixer for fp.RM as args[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Sep 21, 2024
1 parent f21b9df commit e5341fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion claripy/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _type_fixer(args):
matches = list(itertools.starmap(isinstance, zip(args, actual_arg_types, strict=False)))

# heuristically, this works!
thing = args[matches.index(True, 1 if actual_arg_types[0] is fp.RM else 0)] if True in matches else None
thing = args[matches.index(True, 0)] if True in matches else None

for arg, argty, match in zip(args, actual_arg_types, matches, strict=False):
if not match:
Expand Down

0 comments on commit e5341fe

Please sign in to comment.