Fix return type of upper_bound_hint.