Whenever I use a byte or short data type as a parameter to a method, when I call the method, I need to explicitly pass the values that I pass to these methods.
To better explain:
void foo(short x)
{}
void main() {foo((short)32);}
If I do not use short here, then a warning is generated.
method foo in class px cannot be applied to given types
required: byte
found: int
How can I get it better?
source
share