added promotion for scalar constants