@@ -764,7 +764,7 @@ final class ZipArchive
764
764
if (de.flags & 1 )
765
765
throw new ZipException (" encryption not supported" );
766
766
767
- int i;
767
+ uint i;
768
768
i = de.offset + 30 + namelen + extralen;
769
769
if (i + de.compressedSize > endrecOffset)
770
770
throw new ZipException (" invalid directory entry 5" );
@@ -793,35 +793,35 @@ final class ZipArchive
793
793
794
794
/* ============ Utility =================== */
795
795
796
- @safe @nogc pure nothrow ushort getUshort(int i)
796
+ @safe @nogc pure nothrow ushort getUshort(uint i)
797
797
{
798
798
ubyte [2 ] result = data[i .. i + 2 ];
799
799
return littleEndianToNative! ushort (result);
800
800
}
801
801
802
- @safe @nogc pure nothrow uint getUint(int i)
802
+ @safe @nogc pure nothrow uint getUint(uint i)
803
803
{
804
804
ubyte [4 ] result = data[i .. i + 4 ];
805
805
return littleEndianToNative! uint (result);
806
806
}
807
807
808
- @safe @nogc pure nothrow ulong getUlong(int i)
808
+ @safe @nogc pure nothrow ulong getUlong(uint i)
809
809
{
810
810
ubyte [8 ] result = data[i .. i + 8 ];
811
811
return littleEndianToNative! ulong (result);
812
812
}
813
813
814
- @safe @nogc pure nothrow void putUshort(int i, ushort us)
814
+ @safe @nogc pure nothrow void putUshort(uint i, ushort us)
815
815
{
816
816
data[i .. i + 2 ] = nativeToLittleEndian(us);
817
817
}
818
818
819
- @safe @nogc pure nothrow void putUint(int i, uint ui)
819
+ @safe @nogc pure nothrow void putUint(uint i, uint ui)
820
820
{
821
821
data[i .. i + 4 ] = nativeToLittleEndian(ui);
822
822
}
823
823
824
- @safe @nogc pure nothrow void putUlong(int i, ulong ul)
824
+ @safe @nogc pure nothrow void putUlong(uint i, ulong ul)
825
825
{
826
826
data[i .. i + 8 ] = nativeToLittleEndian(ul);
827
827
}
0 commit comments