Replace "%z" modifier with glib macro for portability.
This commit is contained in:
parent
67c75c5a33
commit
ca0c9b3636
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user