I get the error "loss of accuracy" when it should not be, AFAIK.
this is an instance variable:
byte move=0;
this happens in a method of this class:
this.move=(this.move<<4)|(byte)(Guy.moven.indexOf("left")&0xF);
move is a byte, moving is still a byte, and the rest is a byte.
I get this error:
[javac] /Users/looris/Sviluppo/dumdedum/client/src/net/looris/android/toutry/Guy.java:245: possible loss of precision [javac] found : int [javac] required: byte [javac] this.move=(this.move<<4)|(byte)(Guy.moven.indexOf("left")&0xF); [javac] ^
I tried many options, but still getting the same error.
Now I don’t know.
java casting precision
o0 '.
source share