[PATCH] fix integer truncation in hp2ps output
Simon Marlow
simonmar at microsoft.com
Tue Apr 13 09:51:33 EDT 2004
> The following patch fixes a bug in hp2ps that causes silly
> numbers like
>
> 84,762,122,-646
>
> to appear in the heading. The problem was that 'n' is (can
> be) a 64-bit
> type, and converting to an int before doing the modulo gives rounding
> errors.
>
> The fix is courtesy of Ralf Wildenhues (Ralf.Wildenhues at gmx.de).
Thanks; committed.
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list