Fix printf format specifiers

This commit is contained in:
Matthias Neeracher 2011-08-28 12:40:45 +02:00
parent a815cc09da
commit 9c7f3607ba
2 changed files with 3 additions and 3 deletions

View File

@ -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;
//

View File

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