?
=?iso-8859-1?q?J=FCrgen_Gerstacker?=
Hello,
very frequently I have to use Byte-constants, numbers in the range 0x80
- 0x7f. If I don't cast such a constant with '(byte)' I get an error
like:
write_4bytes(byte,byte) in ser.yyy_ser cannot be applied to (int,byte)
cls.write_4bytes(0xf0,(byte)0x4d); //sw
C has several suffixes like 0b, 10u, 7l to indicate byte-constants, or
unsigned constants, or long constants, .... Is such possible also with
java, or is casting with '(byte)' obligatory?
Juergen
very frequently I have to use Byte-constants, numbers in the range 0x80
- 0x7f. If I don't cast such a constant with '(byte)' I get an error
like:
write_4bytes(byte,byte) in ser.yyy_ser cannot be applied to (int,byte)
cls.write_4bytes(0xf0,(byte)0x4d); //sw
C has several suffixes like 0b, 10u, 7l to indicate byte-constants, or
unsigned constants, or long constants, .... Is such possible also with
java, or is casting with '(byte)' obligatory?
Juergen