Compiler error when maximum value assigned

Assigning the maximum value to a decimal variant without a decimal portion causes a compiler error. [CR 380713]