Commit dbe3f24c authored by Robert Bradshaw's avatar Robert Bradshaw

Consistently promote to typedef types over non-typedef of equal rank and sign.

parent 97e1c477
...@@ -4131,6 +4131,10 @@ def widest_numeric_type(type1, type2): ...@@ -4131,6 +4131,10 @@ def widest_numeric_type(type1, type2):
widest_type = type1 widest_type = type1
elif type1.signed < type2.signed: elif type1.signed < type2.signed:
widest_type = type1 widest_type = type1
elif type1.signed > type2.signed:
widest_type = type2
elif type1.is_typedef > type2.is_typedef:
widest_type = type1
else: else:
widest_type = type2 widest_type = type2
return widest_type return widest_type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment