From 613d9d3b1f1c94829433467cb254bb1cc0fa2a95 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Sat, 13 Jan 2007 07:56:52 +0000 Subject: long is not always the same size from arch to arch: causing amd64 svg/test-svg failures (bzr r2203) --- src/svg/stringstream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/svg/stringstream.cpp') diff --git a/src/svg/stringstream.cpp b/src/svg/stringstream.cpp index cdb29c865..65c01e7b6 100644 --- a/src/svg/stringstream.cpp +++ b/src/svg/stringstream.cpp @@ -20,7 +20,7 @@ operator<<(Inkscape::SVGOStringStream &os, float d) { /* Try as integer first. */ { - long const n = long(d); + int const n = int(d); if (d == n) { os << n; return os; @@ -41,7 +41,7 @@ operator<<(Inkscape::SVGOStringStream &os, double d) { /* Try as integer first. */ { - long const n = long(d); + int const n = int(d); if (d == n) { os << n; return os; -- cgit v1.2.3