From 9c7f3607ba154f7f228a9ab9efc9f705a664b436 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 28 Aug 2011 12:40:45 +0200 Subject: [PATCH] Fix printf format specifiers --- Sources/VLLilypondWriter.cpp | 4 ++-- Sources/VLMMAWriter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/VLLilypondWriter.cpp b/Sources/VLLilypondWriter.cpp index 953da4b..a08ca9c 100644 --- a/Sources/VLLilypondWriter.cpp +++ b/Sources/VLLilypondWriter.cpp @@ -44,12 +44,12 @@ void VLLilypondWriter::VisitMeasure(size_t m, VLProperties & p, VLMeasure & meas { char measNo[8]; if (!(m % 4)) - sprintf(measNo, " %% %d", m+1); + sprintf(measNo, " %% %lu", m+1); else measNo[0] = 0; fUseSharps = p.fKey > 0; - if (fInPickup = fInPickup && !m && meas.NoChords()) + if (fInPickup && !m && meas.NoChords()) ++fPrevBreak; // diff --git a/Sources/VLMMAWriter.cpp b/Sources/VLMMAWriter.cpp index 2b98bc4..764c50d 100644 --- a/Sources/VLMMAWriter.cpp +++ b/Sources/VLMMAWriter.cpp @@ -32,7 +32,7 @@ void VLMMAWriter::VisitMeasure(size_t m, VLProperties & p, VLMeasure & meas) if (p.fKey != fKey) { fKey = p.fKey; - sprintf(buf, "KeySig %d%c\n", labs(fKey), fKey>=0 ? '#' : '&'); + sprintf(buf, "KeySig %ld%c\n", labs(fKey), fKey>=0 ? '#' : '&'); fMeasures += buf; } if (!fPreview && p.fGroove != fGroove) {