13
0

Replace "%z" modifier with glib macro for portability.

This commit is contained in:
Robin Gareus 2015-07-30 17:00:03 +02:00
parent 67c75c5a33
commit ca0c9b3636
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ StatefulImage::load_states (const XMLNode& node)
error << _("no ID for state") << endmsg;
continue;
}
sscanf (prop->value().c_str(), "%zd", &id);
sscanf (prop->value().c_str(), "%" G_GSIZE_FORMAT, &id);
if ((prop = (*i)->property ("image")) == 0) {
error << _("no image for state") << endmsg;

View File

@ -277,7 +277,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 %zu",
off += snprintf(buf + off, BUFFER_SIZE - off, "Proprietary (aka Sequencer) Event, length %" G_GSIZE_FORMAT,
event->midi_buffer_length);
break;

View File

@ -519,7 +519,7 @@ smf_validate(smf_t *smf)
assert(event);
if (!smf_event_is_valid(event)) {
g_critical("Event #%zu on track #%d is invalid.", eventno, trackno);
g_critical("Event #%" G_GSIZE_FORMAT " on track #%d is invalid.", eventno, trackno);
return (-5);
}