summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-12-30 16:05:25 +0100
committerRobin Gareus <robin@gareus.org>2019-12-30 16:05:25 +0100
commit2f167e6163bdf599fd66fd642ab7159405ef8f81 (patch)
tree94dce8bba6e1b08a68133c74aa8806ff735c56bf /gtk2_ardour/utils.cc
parent3ee08bbae796fe0c771f3c6bb922574584787693 (diff)
Fix formatting samplecnt_t (aka int64_t aka long long int)
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r--gtk2_ardour/utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc
index 25196a62dd..018ddd39d0 100644
--- a/gtk2_ardour/utils.cc
+++ b/gtk2_ardour/utils.cc
@@ -775,7 +775,7 @@ ARDOUR_UI_UTILS::samples_as_time_string (samplecnt_t s, float rate, bool show_sa
snprintf (buf, sizeof (buf), "0");
} else if (s < 1000 && show_samples) {
/* 0 .. 999 spl */
- snprintf (buf, sizeof (buf), "%ld spl", s);
+ snprintf (buf, sizeof (buf), PRId64" spl", s);
} else if (s < (rate / 1000.f)) {
/* 0 .. 999 usec */
snprintf (buf, sizeof (buf), "%.0f \u00B5s", s * 1e+6f / rate);