diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-04-20 05:38:46 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-04-20 05:38:46 +0200 |
commit | 9e126007c0e0ffacece64efb436490403dee1493 (patch) | |
tree | 7f11eae42e4d851e6fb428832dea12f3f0ec2b49 /src/wopl | |
parent | 2c99f0ebc3b2f2cc99b9e7acd8c138921020675d (diff) | |
download | libADLMIDI-9e126007c0e0ffacece64efb436490403dee1493.tar.gz libADLMIDI-9e126007c0e0ffacece64efb436490403dee1493.tar.bz2 libADLMIDI-9e126007c0e0ffacece64efb436490403dee1493.zip |
fix implementation defined behavior
Diffstat (limited to 'src/wopl')
-rw-r--r-- | src/wopl/wopl_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wopl/wopl_file.c b/src/wopl/wopl_file.c index 1d4ceeb..af141f2 100644 --- a/src/wopl/wopl_file.c +++ b/src/wopl/wopl_file.c @@ -71,7 +71,7 @@ static void fromUint16BE(uint16_t in, uint8_t *arr) static void fromSint16BE(int16_t in, uint8_t *arr) { arr[1] = in & 0x00FF; - arr[0] = (in >> 8) & 0x00FF; + arr[0] = ((uint16_t)in >> 8) & 0x00FF; } |