Fix bad format string (#3022).
authorCarl Hetherington <cth@carlh.net>
Sat, 3 May 2025 15:21:09 +0000 (17:21 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 3 May 2025 16:47:53 +0000 (18:47 +0200)
src/tools/dcpomatic_editor.cc

index 1e0d5672d4c140d2a656c0d3041bd2fb1aff49d0..b8262ba8baa6563a6dffc487f91ec19ac3e509f7 100644 (file)
@@ -110,7 +110,7 @@ public:
                _duration->SetRange(0, 259200);
                _duration->SetValue(asset->duration().get_value_or(0));
 
-               intrinsic_duration->SetValue(wxString::Format(char_to_wx("%ld"), asset->intrinsic_duration()));
+               intrinsic_duration->SetValue(wxString::Format(char_to_wx("%" PRId64), asset->intrinsic_duration()));
 
                _annotation_text->Bind(wxEVT_TEXT, boost::bind(&AssetPanel::annotation_text_changed, this));
                _entry_point->Bind(wxEVT_SPINCTRL, boost::bind(&AssetPanel::entry_point_changed, this));