I am trying to XOR two bytes.. this is the code
byte A = 0x55;
byte B = A ^ 0x45;
On compiling, this is the error i get:
possible loss of precision
found : int
required: byte
byte B = A ^ 0x45;
Any idea whats going wrong?
I can't use any other data type as in my actual code the data is an array of bytes.
Thanks for your help.