Merge branch 'master' of https://github.com/tildearrow/furnace into mod-import

This commit is contained in:
Natt Akuma 2022-03-14 21:57:54 +07:00
commit c7fb5df206
83 changed files with 7113 additions and 372 deletions

View file

@ -112,9 +112,9 @@ int SafeReader::readI() {
int SafeReader::readI_BE() {
if (curSeek+4>len) throw EndOfFileException(this,len);
int ret=*(int*)(&buf[curSeek]);
unsigned int ret=*(unsigned int*)(&buf[curSeek]);
curSeek+=4;
return (ret>>24)|((ret&0xff0000)>>8)|((ret&0xff00)<<8)|((ret&0xff)<<24);
return (int)((ret>>24)|((ret&0xff0000)>>8)|((ret&0xff00)<<8)|((ret&0xff)<<24));
}
int64_t SafeReader::readL() {