Bug#787698: supertux: FTBFS on big-endian archs
Vincent Cheng
vcheng at debian.org
Thu Aug 20 08:05:44 UTC 2015
Hi Fabian,
On Mon, Aug 17, 2015 at 4:06 AM, Fabian Greffrath <fabian at greffrath.com> wrote:
> 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;
>
Thanks for the patch, and sorry for dropping the ball on this! I'll
upload an updated package within the next hour.
Regards,
Vincent
More information about the Pkg-games-devel
mailing list