[kaffe] Odd Jython/jar behaviour
Dalibor Topic
robilad@yahoo.com
Wed Jan 8 07:01:02 2003
Hi Archie,
--- Archie Cobbs <archie@dellroad.org> wrote:
> Clearly, whatever function you use can't return have
> return type
> "byte", because if it did the upper 24 bits of the
> result will
> always be 1 due to sign-extension from integral
> promotion.
>
> Alternately, add "& 0xff" to all the read*()
> function calls.
yeah, you're right. The spec explicitely says to use
&0xff. Funny enough, that's what readUnsignedByte
already does. But readUnsignedByte doesn't work. So
I'm a little puzzled.
best regards,
dalibor topic
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com