fix endian bug

This commit is contained in:
aap 2020-11-29 20:57:38 +01:00
parent 2066cf6634
commit aa205bbf7b
1 changed files with 1 additions and 1 deletions

View File

@ -760,7 +760,7 @@ Stream::write32(const void *data, uint32 length)
for(len = length >>= 2; len > 0; len -= 256){ for(len = length >>= 2; len > 0; len -= 256){
n = len < 256 ? len : 256; n = len < 256 ? len : 256;
memcpy(buf, src, n*4); memcpy(buf, src, n*4);
memLittle16(buf, n*4); memLittle32(buf, n*4);
write8(buf, n*4); write8(buf, n*4);
src += n*4; src += n*4;
} }