lilypond-devel
[Top][All Lists]
Advanced

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

Re: Line 722 of axis-group-interface.cc


From: Neil Puttock
Subject: Re: Line 722 of axis-group-interface.cc
Date: Tue, 9 Aug 2011 20:25:15 +0100

On 8 August 2011 09:09, address@hidden <address@hidden> wrote:
> Question: on line 722 of axis-group-interface.cc, I see:
>
>      while (i + 1 < elements.size ()
>             && scm_eq_p (elements[i + 1]->get_property 
> ("outside-staff-priority"), priority))
>
> Shouldn't this be:
>
>      while (i + 1 < elements.size ()
>             && to_boolean (scm_eq_p (elements[i + 1]->get_property 
> ("outside-staff-priority"), priority)))

Good catch.

The Guile docs suggest using scm_eqv_p for this case:

"Numbers and characters are not equal to any other object, but the
problem is they're not necessarily eq? to themselves either."

Cheers,
Neil



reply via email to

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