Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

ReadLEUint in ZipFile.cs needs a cast

$
0
0

Currently, it is:

uintReadLEUint()

{

    return(uint)(ReadLEUshort()|(ReadLEUshort()<<16));

}

But that causes exceptions if overflow check is enabled.  I changed it to this:

    return(ReadLEUshort()|((uint)ReadLEUshort()<<16));


Viewing all articles
Browse latest Browse all 1764