lilypond-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix redefinition of s in Music_sequence::first_start. (Close


From: Colin Campbell
Subject: Re: [PATCH] Fix redefinition of s in Music_sequence::first_start. (Closes #672087).
Date: Tue, 29 May 2012 21:59:02 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 12-05-29 06:02 PM, Don Armstrong wrote:
The following patch fixes an issue which keeps lilypond from building
properly on GCC 4.7. [It's also almost certainly a bug in addition to
this.]

---
  debian/changelog       |    7 +++++++
  lily/music-sequence.cc |    8 ++++----
  2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a4bbb2f..f2cb168 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+lilypond (2.14.2-3) unstable; urgency=low
+
+  * Fix redefinition of s in Music_sequence::first_start. (Closes
+    #672087).
+
+ -- Don Armstrong<address@hidden>   Sun, 13 May 2012 16:07:16 -0700
+
  lilypond (2.14.2-2) unstable; urgency=low
https://www.google.com/search?q=vmware+view+client+install+switches&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs
    * Disable optimization on i386 and kfreebsd-i386 to avoid segfaults with
diff --git a/lily/music-sequence.cc b/lily/music-sequence.cc
index 8c9642c..42bfd87 100644
--- a/lily/music-sequence.cc
+++ b/lily/music-sequence.cc
@@ -148,10 +148,10 @@ Music_sequence::first_start (SCM l)
    for (SCM s = l; scm_is_pair (s); s = scm_cdr (s))
      {
        Music *mus = unsmob_music (scm_car (s));
-      Moment l = mus->get_length ();
-      Moment s = mus->start_mom ();
-      if (l.to_bool () || s.to_bool ())
-       return s;
+      Moment lt = mus->get_length ();
+      Moment st = mus->start_mom ();
+      if (lt.to_bool () || st.to_bool ())
+       return st;
      }
    return m;
  }


Don, would you have a look at our outstanding issues list ( particularly code.google.com/p/lilypond/issues/detail?id=2129 ) and let us know if your patch can be applied to an existing issue, or whether it is a new enhancement request? Let me know either way, and I'll help with the steps to get the patch into the review process.

Cheers,
Colin  Campbell

--
I've learned that you shouldn't go through life with a catcher's mitt on both 
hands.
You need to be able to throw something back.
-Maya Angelou, poet (1928- )




reply via email to

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