We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3871115 commit d72dcd0Copy full SHA for d72dcd0
DeeployTest/testUtils/typeMapping.py
@@ -84,7 +84,13 @@ def inferInputType(_input: np.ndarray,
84
if _type.checkPromotion(_input - signPropOffset):
85
matchingTypes.append(offsetType(PointerClass(_type), signPropOffset))
86
elif isInteger(_input):
87
- for _type in sorted(IntegerDataTypes, key = lambda x: x.typeWidth):
+ sorted_types = sorted(
88
+ IntegerDataTypes,
89
+ key = lambda t: (t.typeWidth, t.typeMin < 0),
90
+ )
91
+
92
+ matchingTypes = []
93
+ for _type in sorted_types:
94
if _type.checkPromotion(_input):
95
matchingTypes.append(offsetType(PointerClass(_type), 0))
96
else:
0 commit comments