From: Nicholas Nethercote Date: Fri, 2 Apr 2004 13:08:40 +0000 (+0000) Subject: Fix bug in hp2ps that caused the title to have negative numbers in it. Thanks X-Git-Tag: svn/VALGRIND_2_1_2~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f0579f5f97f07aa045273da6e5a2f6ef7b1999f;p=thirdparty%2Fvalgrind.git Fix bug in hp2ps that caused the title to have negative numbers in it. Thanks to Ralf.Wildenhues@gmx.de. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2349 --- diff --git a/massif/hp2ps/Utilities.c b/massif/hp2ps/Utilities.c index a194ca78fe..0f0ba590e0 100644 --- a/massif/hp2ps/Utilities.c +++ b/massif/hp2ps/Utilities.c @@ -77,7 +77,7 @@ CommaPrint(fp,n) fprintf(fp, "%d", (int)n); } else { CommaPrint(fp, n / ONETHOUSAND); - fprintf(fp, ",%03d", (int)n % ONETHOUSAND); + fprintf(fp, ",%03d", (int)(n % ONETHOUSAND)); } }