X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fstateful_image.cc;h=f5cc76dd039694e1bbaf9b1c51b4760ef5ba8dca;hb=ca0c9b3636fecb5fc2106b1eae33ce3eb5c53c79;hp=b62da9cc8ccfeb0a535a29bfcca677136b30c754;hpb=e5e12acc5698090f2c0c614385e457cc0b46fbb0;p=ardour.git diff --git a/libs/canvas/stateful_image.cc b/libs/canvas/stateful_image.cc index b62da9cc8c..f5cc76dd03 100644 --- a/libs/canvas/stateful_image.cc +++ b/libs/canvas/stateful_image.cc @@ -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;