From b9ac179b2e601f761cc60d431a3e5428f3740935 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 13 May 2009 17:33:58 +0000 Subject: Silence another g++ 4.4 warning. svn-id: r40527 --- backends/midi/timidity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backends/midi') diff --git a/backends/midi/timidity.cpp b/backends/midi/timidity.cpp index 4e1ddb770a..ecb6dd7e8a 100644 --- a/backends/midi/timidity.cpp +++ b/backends/midi/timidity.cpp @@ -37,6 +37,7 @@ #if defined (UNIX) #include "common/util.h" +#include "common/endian.h" #include "sound/musicplugin.h" #include "sound/mpu401.h" @@ -367,7 +368,7 @@ void MidiDriver_TIMIDITY::timidity_meta_seq(int p1, int p2, int p3) { seqbuf[3] = 0x7f; seqbuf[4] = p1; seqbuf[5] = p2; - *(short *)&seqbuf[6] = p3; + WRITE_UINT16(&seqbuf[6], p3); timidity_write_data(seqbuf, sizeof(seqbuf)); } -- cgit v1.2.3