From: Han-Wen Nienhuys Date: Fri, 16 Jun 2006 10:16:12 +0000 (+0000) Subject: (count_factor_twos): oops. We want to X-Git-Tag: cvs/HEAD~288 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=74d1723b4867e72387e7888cd52e3eee87409123;p=lilypond.git (count_factor_twos): oops. We want to x%2==0. --- diff --git a/ChangeLog b/ChangeLog index 2d752ba098..7fcc442275 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,14 +1,21 @@ +2006-06-16 Han-Wen Nienhuys + + * lily/beaming-pattern.cc (count_factor_twos): oops. We want to + x%2==0. + 2006-06-15 Han-Wen Nienhuys + * VERSION (PACKAGE_NAME): release 2.9.9 + * ly/lilypond-book-preamble.ly: add \version 2006-06-14 Han-Wen Nienhuys * 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. diff --git a/lily/beaming-pattern.cc b/lily/beaming-pattern.cc index b6e5a36e51..ca9970dd89 100644 --- a/lily/beaming-pattern.cc +++ b/lily/beaming-pattern.cc @@ -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 ++;