summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-28 21:33:13 +0100
committerRobin Gareus <robin@gareus.org>2017-02-28 21:33:13 +0100
commitce2c3a9c701506b82904c68ff0d8512391df11c8 (patch)
tree0a4753c535cb6b29535b3f4425e7230cfe146826 /libs
parenta80920c016127d7601bb89ba32c0beb7040c4cdf (diff)
c89 compat (gcc4, mingw..)
Diffstat (limited to 'libs')
-rw-r--r--libs/evoral/src/libsmf/smf_load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/evoral/src/libsmf/smf_load.c b/libs/evoral/src/libsmf/smf_load.c
index 61a40baf24..3d8627811d 100644
--- a/libs/evoral/src/libsmf/smf_load.c
+++ b/libs/evoral/src/libsmf/smf_load.c
@@ -346,7 +346,8 @@ expected_message_length(unsigned char status, const unsigned char *second_byte,
* eg. ff02 8266 <0x166 byte (C) message follows>
*/
int32_t mlen = 0;
- for (int32_t off = 1; off < 4; ++off) {
+ int32_t off;
+ for (off = 1; off < 4; ++off) {
uint8_t val = *(second_byte + off);
mlen = mlen << 7 | (val & 0x7f);
if (0 == (val & 0x80)) {