projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
364291e
)
[project @ 2004-04-13 13:51:20 by simonmar]
author
simonmar
<unknown>
Tue, 13 Apr 2004 13:51:20 +0000
(13:51 +0000)
committer
simonmar
<unknown>
Tue, 13 Apr 2004 13:51:20 +0000
(13:51 +0000)
Fix integer truncation
Subimitted by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, via
Nicholas Nethercote <njn25@cam.ac.uk>
ghc/utils/hp2ps/Utilities.c
patch
|
blob
|
history
diff --git
a/ghc/utils/hp2ps/Utilities.c
b/ghc/utils/hp2ps/Utilities.c
index
57d20b1
..
aba1caf
100644
(file)
--- a/
ghc/utils/hp2ps/Utilities.c
+++ b/
ghc/utils/hp2ps/Utilities.c
@@
-73,7
+73,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));
}
}