]> git.donarmstrong.com Git - lilypond.git/commitdiff
(count_factor_twos): oops. We want to
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 16 Jun 2006 10:16:12 +0000 (10:16 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 16 Jun 2006 10:16:12 +0000 (10:16 +0000)
x%2==0.

ChangeLog
lily/beaming-pattern.cc

index 2d752ba0980b329f7f504374932aaec06960b162..7fcc442275e947b07af96bfc8c18ff15ad2115c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,14 +1,21 @@
+2006-06-16  Han-Wen Nienhuys  <hanwen@lilypond.org>
+
+       * lily/beaming-pattern.cc (count_factor_twos): oops. We want to
+       x%2==0.
+
 2006-06-15  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
+       * VERSION (PACKAGE_NAME): release 2.9.9
+
        * ly/lilypond-book-preamble.ly: add \version
 
 2006-06-14  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
        * scripts/lilypond-book.py (PREAMBLE_LY): include
-       lilypond-book-premable.ly
+       lilypond-book-preamble.ly
 
-       * lily/stem.cc (get_beaming): return max of scm_ilength. Fixes
-       slurring from/to beams. 
+       * lily/stem.cc (get_beaming): return max of 0 and
+       scm_ilength. Fixes slurring from/to beams.
 
        * ly/lilypond-book-preamble.ly: new file.
 
index b6e5a36e516b0b3168ec39f908fb1300d12e0118..ca9970dd8901324dbfc02d0ca21dfbb8f489ce91 100644 (file)
@@ -29,7 +29,7 @@ int
 count_factor_twos (int x)
 {
   int c = 0;
-  while (x && x % 2)
+  while (x && x % 2 == 0)
     {
       x /= 2;
       c ++;