diff options
Diffstat (limited to 'apps/plugins/midi/guspat.c')
-rw-r--r-- | apps/plugins/midi/guspat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c index 5f6ba35110..ea0ca92518 100644 --- a/apps/plugins/midi/guspat.c +++ b/apps/plugins/midi/guspat.c @@ -122,7 +122,7 @@ struct GWaveform * loadWaveform(int file) /* Byte-swap if necessary. Gus files are little endian */ for(a=0; a<wav->numSamples; a++) { - ((unsigned short *) wav->data)[a] = letoh16(((unsigned short *) wav->data)[a]); + ((uint16_t*) wav->data)[a] = letoh16(((uint16_t *) wav->data)[a]); } #endif @@ -130,7 +130,7 @@ struct GWaveform * loadWaveform(int file) if(wav->mode & 2) { for(a=0; a<wav->numSamples; a++) - ((short *) wav->data)[a] = ((unsigned short *) wav->data)[a] - 32768; + ((int16_t *) wav->data)[a] = ((uint16_t *) wav->data)[a] - 32768; } |