more endian fix

This commit is contained in:
zeromus 2008-11-09 01:54:15 +00:00
parent 54f9bf517f
commit cf93b5b102
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ int read16le(uint16 *Bufo, std::istream *is)
#ifdef LSB_FIRST
*Bufo=buf;
#else
*Bufo = FCEU_de16lsb(&buf)
*Bufo = FCEU_de16lsb((uint8*)&buf);
#endif
return 1;
}
@ -130,7 +130,7 @@ int read64le(uint64 *Bufo, std::istream *is)
#ifdef LSB_FIRST
*Bufo=buf;
#else
*Bufo = FCEU_de64lsb(&buf)
*Bufo = FCEU_de64lsb((uint8*)&buf);
#endif
return 1;
}