Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build failure on big-endian archs
Cast (void *)buffer pointer to (char *) and dereference (char *)tmp
pointer.

This should fix #80
  • Loading branch information
fabiangreffrath authored and tobbi committed Aug 19, 2015
1 parent 23caafb commit 818534a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/wav_sound_file.cpp
Expand Up @@ -159,7 +159,7 @@ WavSoundFile::read(void* buffer, size_t buffer_size)
tmp[2*i+1] = c;
}

*buffer = tmp;
*(char *)buffer = *tmp;
#endif

return readsize;
Expand Down

0 comments on commit 818534a

Please sign in to comment.