Skip to content

Commit 8dfcf66

Browse files
author
q66
committed
supertux2: fix build on big endian
1 parent 1008316 commit 8dfcf66

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
commit ab3daa606e215f43aa3077daad82cd2d55c38908
2+
Author: q66 <daniel@octaforge.org>
3+
Date: Mon Jan 6 03:02:59 2020 +0100
4+
5+
Fix build on big endian
6+
7+
diff --git src/audio/wav_sound_file.cpp src/audio/wav_sound_file.cpp
8+
index c4036b1..e056f50 100644
9+
--- src/audio/wav_sound_file.cpp
10+
+++ src/audio/wav_sound_file.cpp
11+
@@ -150,7 +150,7 @@ WavSoundFile::read(void* buffer, size_t buffer_size)
12+
throw SoundError("read error while reading samples");
13+
14+
#ifdef WORDS_BIGENDIAN
15+
- if (bits_per_sample != 16)
16+
+ if (m_bits_per_sample != 16)
17+
return readsize;
18+
char *tmp = (char*)buffer;
19+

0 commit comments

Comments
 (0)