From bf85bbb78970493286afa9c72b9a56fec683a9fd Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 16 Jun 2006 10:16:11 +0000 Subject: [PATCH] (count_factor_twos): oops. We want to x%2==0. --- ChangeLog | 13 ++++++++++--- lily/beaming-pattern.cc | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) 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 ++; -- 2.39.5