I've got some incredibly simple code. Three UInt16 variables. I can do simple assignments but it won't let me do simple arithmetic.
Here's the code
UInt16 A = 1; // This is OK
UInt16 B = 2; // This is OK
UInt16 C = A * B; // Does NOT like this.
C = A * 2; // Does NOT like this.
It highlights the A * B and reports that the A * B part Cannot implicitly convert type "int" to "ushort". An explicit conversion exists. Are you missing a cast?
Likewise for the A * 2 part;
What am I doing wrong? What do I need to correct it?