PR16628: Fix a bug in the code that merges compares.
Compares return i1 but they compare different types.