Fix Issue 12051 - Wrong code with ?: resulting in char on x86-64