mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
uppsrc: Fixed all -Wall warnings (except logical parenthesis and misplaced else)
git-svn-id: svn://ultimatepp.org/upp/trunk@6902 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bca76618f1
commit
32a106ca9b
29 changed files with 167 additions and 152 deletions
|
|
@ -40,7 +40,6 @@ void UnZip::ReadDir()
|
|||
|
||||
zip->Seek(offset);
|
||||
for(int i = 0; i < entries; i++) {
|
||||
int64 rof = zip->GetPos() - offset;
|
||||
if(zip->Get32le() != 0x02014b50 && zip->IsEof())
|
||||
return;
|
||||
File& f = file.Add();
|
||||
|
|
@ -99,7 +98,7 @@ bool UnZip::ReadFile(Stream& out, Gate2<int, int> progress)
|
|||
zip->Seek(f.offset);
|
||||
if(zip->Get32le() != 0x04034b50)
|
||||
return false;
|
||||
int ver = zip->Get16le();
|
||||
zip->Get16le();
|
||||
zip->Get16le(); // Skip header, use info from centrall dir
|
||||
zip->Get16le();
|
||||
zip->Get32le();
|
||||
|
|
@ -110,7 +109,7 @@ bool UnZip::ReadFile(Stream& out, Gate2<int, int> progress)
|
|||
dword extralen = zip->Get16le();
|
||||
zip->SeekCur(filelen + extralen);
|
||||
dword crc;
|
||||
int l;
|
||||
dword l;
|
||||
if(f.method == 0) {
|
||||
Buffer<byte> temp(65536);
|
||||
int loaded;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue