Commit dace1e6c authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.23.x'

parents ececb3e9 918cc8a8
...@@ -4250,6 +4250,10 @@ def merge_template_deductions(a, b): ...@@ -4250,6 +4250,10 @@ def merge_template_deductions(a, b):
def widest_numeric_type(type1, type2): def widest_numeric_type(type1, type2):
"""Given two numeric types, return the narrowest type encompassing both of them. """Given two numeric types, return the narrowest type encompassing both of them.
""" """
if type1.is_reference:
type1 = type1.ref_base_type
if type2.is_reference:
type2 = type2.ref_base_type
if type1 == type2: if type1 == type2:
widest_type = type1 widest_type = type1
elif type1.is_complex or type2.is_complex: elif type1.is_complex or type2.is_complex:
......
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