Try to make the tenary operation a little simpler for compilers which have problems with implicit conversions.