]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix bug in hp2ps that caused the title to have negative numbers in it. Thanks
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 2 Apr 2004 13:08:40 +0000 (13:08 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 2 Apr 2004 13:08:40 +0000 (13:08 +0000)
to Ralf.Wildenhues@gmx.de.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2349

massif/hp2ps/Utilities.c

index a194ca78fea2cd27ac4ce17944e143682dc9cd78..0f0ba590e0e301941c85083612594b4afbfab61e 100644 (file)
@@ -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));
     }
 }