mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Swap the archive type on big endian architectures
This commit is contained in:
parent
e00ebda641
commit
7d1067108b
1 changed files with 3 additions and 3 deletions
|
@ -1123,7 +1123,8 @@ int Archiver::ReadType(void)
|
|||
|
||||
void Archiver::WriteType(int type)
|
||||
{
|
||||
archivefile.Write(&type, sizeof(type));
|
||||
int nt = LittleLong(type);
|
||||
archivefile.Write(&nt, sizeof(nt));
|
||||
}
|
||||
|
||||
void Archiver::CheckType(int type)
|
||||
|
@ -1146,8 +1147,7 @@ void Archiver::CheckType(int type)
|
|||
}
|
||||
}
|
||||
} else {
|
||||
int nt = LittleLong(type);
|
||||
archivefile.Write(&nt, sizeof(nt));
|
||||
WriteType(type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue