[Kaffe] a new patch for ZipOutputStream

Archie Cobbs archie at whistle.com
Tue Feb 23 23:44:05 PST 1999


Moses DeJong writes:
>  private void put16(byte[] zheader, int pos, int val) {
>  	zheader[pos] = (byte)val;
> -	zheader[pos+1] = (byte)(val >> 8);
> +	zheader[pos+1] = (byte)(val >>> 8);
>  }

This patch was just committed, but just FYI it's not necessary because
you're already masking off the top 24 bits with the (byte) cast.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


More information about the kaffe mailing list