lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commit df1b639baf "Fixes round problem" appears wrong to me.


From: Han-Wen Nienhuys
Subject: Re: Commit df1b639baf "Fixes round problem" appears wrong to me.
Date: Wed, 2 Mar 2011 17:05:30 -0300

On Tue, Mar 1, 2011 at 7:51 PM, David Kastrup <address@hidden> wrote:
> The diff says something like
>
>    {
>       Real yshift = config->y[LEFT] - 0.5 * staff_space;
> -      if (abs (round(yshift) - yshift) < 0.01 * staff_space)
> +      if (abs ((int)(yshift + 0.5) - yshift) < 0.01 * staff_space)
>         config->add (parameters.HORIZONTAL_INTER_QUANT_PENALTY, "H");
>     }

We have a my_round() for this.  Can we instead define a normal round()
function with an #ifdef FREEBSD , to fix this for once and for all?

--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]