precision « cast « Java Data Type Q&A





1. "possible loss of precision" is Java going crazy or I'm missing something?    stackoverflow.com

I'm getting a "loss of precision" error when there should be none, 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, move is still ...