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 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/massif/hp2ps/Utilities.c b/massif/hp2ps/Utilities.c
index a194ca7..0f0ba59 100644
--- a/massif/hp2ps/Utilities.c
+++ b/massif/hp2ps/Utilities.c
@@ -77,7 +77,7 @@
fprintf(fp, "%d", (int)n);
} else {
CommaPrint(fp, n / ONETHOUSAND);
- fprintf(fp, ",%03d", (int)n % ONETHOUSAND);
+ fprintf(fp, ",%03d", (int)(n % ONETHOUSAND));
}
}