Bug#787698: supertux: FTBFS on big-endian archs
Fabian Greffrath
fabian at greffrath.com
Mon Aug 17 11:06:25 UTC 2015
Control: tags -1 + patch
Am Montag, den 08.06.2015, 09:07 +0200 schrieb Fabian Greffrath:
> *((char *)buffer) = tmp;
Correction: You'll also need to dereference the tmp pointer, i.e.:
--- supertux-0.3.5a.orig/src/audio/wav_sound_file.cpp
+++ supertux-0.3.5a/src/audio/wav_sound_file.cpp
@@ -159,7 +159,7 @@ WavSoundFile::read(void* buffer, size_t
tmp[2*i+1] = c;
}
- *buffer = tmp;
+ *(char *)buffer = *tmp;
#endif
return readsize;
Cheers,
Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20150817/84161d43/attachment-0001.sig>
More information about the Pkg-games-devel
mailing list