Fix types to be warning clean on 64 bit.

git-svn-id: svn://localhost/ardour2/branches/3.0@4560 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-02-14 22:22:55 +00:00
parent 464d3d3ab4
commit 8249cfb6a7
7 changed files with 121 additions and 123 deletions

View file

@ -261,8 +261,8 @@ smf_event_decode_metadata(const smf_event_t *event)
} else {
int i = (flats - 248) & 255;
assert(i >= 0 && i < sizeof(minor_keys) / sizeof(*minor_keys));
assert(i >= 0 && i < sizeof(major_keys) / sizeof(*major_keys));
assert(i >= 0 && (size_t)i < sizeof(minor_keys) / sizeof(*minor_keys));
assert(i >= 0 && (size_t)i < sizeof(major_keys) / sizeof(*major_keys));
if (isminor)
off += snprintf(buf + off, BUFFER_SIZE - off, "%s", minor_keys[i]);
@ -273,7 +273,7 @@ smf_event_decode_metadata(const smf_event_t *event)
break;
case 0x7F:
off += snprintf(buf + off, BUFFER_SIZE - off, "Proprietary (aka Sequencer) Event, length %d",
off += snprintf(buf + off, BUFFER_SIZE - off, "Proprietary (aka Sequencer) Event, length %zu",
event->midi_buffer_length);
break;