From cf93b5b1021795a9b8b2cfa3600a3987b86f54ba Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 9 Nov 2008 01:54:15 +0000 Subject: [PATCH] more endian fix --- src/utils/endian.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/endian.cpp b/src/utils/endian.cpp index e63c9a49..0524272d 100644 --- a/src/utils/endian.cpp +++ b/src/utils/endian.cpp @@ -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; }