Fixed warnings on ambiguous code that depend on the compiler evaluation order