Skip to content

Commit b699ff8

Browse files
aalkinsawenzel
authored andcommitted
[O2-2453] DPL Analysis: Fix integer result type inference for expressions
1 parent cc315e0 commit b699ff8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Framework/Core/src/Expressions.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,12 @@ Operations createOperations(Filter const& expression)
277277
if (t2 == atype::DOUBLE) {
278278
return atype::DOUBLE;
279279
}
280+
if (isIntType(t2)) {
281+
if (t1 > t2) {
282+
return t1;
283+
}
284+
return t2;
285+
}
280286
}
281287
if (t1 == atype::FLOAT) {
282288
if (isIntType(t2)) {

0 commit comments

Comments
 (0)