Fix type of a constant value