From: pabs3 Date: Thu, 6 Nov 2008 04:14:42 +0000 (+0000) Subject: Use the l printf length modifier when printing the value of long ints, fixes a compil... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f2fefda3669ab4accfa23204db1cf13b74894da3;p=synfig.git Use the l printf length modifier when printing the value of long ints, fixes a compiler warning in the gradient code. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2155 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/gradient.cpp b/synfig-core/trunk/src/synfig/gradient.cpp index d11cb1e..00f67b0 100644 --- a/synfig-core/trunk/src/synfig/gradient.cpp +++ b/synfig-core/trunk/src/synfig/gradient.cpp @@ -203,7 +203,7 @@ synfig::Gradient::operator+=(const Gradient &rhs) // otherwise we sum the first in each, and the last in each else { - if (print) printf("[copying %d from left %d and %d from right %d at %.2f]\n", iter1-left_same+1, tpos1, iter2-right_same+1, tpos2, left.pos); + if (print) printf("[copying %ld from left %d and %ld from right %d at %.2f]\n", iter1-left_same+1, tpos1, iter2-right_same+1, tpos2, left.pos); // merge the front two cpoints if (print) printf(" copy front from left %d right %d\n", tpos1++, tpos2++); ret.push_back(CPoint(left.pos, left.color + right.color));