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) {