June 11, 2006 [Bug 192] New: std.zip produces invalid archives on BigEndian targets | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/bugzilla/show_bug.cgi?id=192 Summary: std.zip produces invalid archives on BigEndian targets Product: D Version: 0.160 Platform: All OS/Version: All Status: NEW Keywords: patch Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla@digitalmars.com ReportedBy: dvdfrdmn@users.sf.net There is a bug in ZipAarchive.putUshort, but it is only triggered on BigEndian targets. Fix: } else { - data[0] = cast(ubyte)us; - data[1] = cast(ubyte)(us >> 8); + data[i] = cast(ubyte)us; + data[i + 1] = cast(ubyte)(us >> 8); } } -- |
Copyright © 1999-2021 by the D Language Foundation