logo       

RE: [PATCH] fix integer truncation in hp2ps output: msg#00008

lang.haskell.glasgow.bugs

Subject: RE: [PATCH] fix integer truncation in hp2ps output


> 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@xxxxxx).

Thanks; committed.

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise