]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.48
authorfred <fred>
Tue, 26 Mar 2002 23:21:31 +0000 (23:21 +0000)
committerfred <fred>
Tue, 26 Mar 2002 23:21:31 +0000 (23:21 +0000)
input/bugs/cm.ly [new file with mode: 0644]
lily/misc.cc
lily/parser.yy

diff --git a/input/bugs/cm.ly b/input/bugs/cm.ly
new file mode 100644 (file)
index 0000000..02e8320
--- /dev/null
@@ -0,0 +1,26 @@
+flauti = \notes \relative c' {
+  c1 
+  \break c
+}
+
+
+timpani = \notes \relative c' {
+  c1 c
+}
+
+
+
+\score {
+  < 
+    \context StaffGroup ="legni" < 
+      \context Staff ="flauti" \flauti
+    >
+    \context StaffGroup ="timpani" <
+    \notes { 
+       c1
+    }
+    >
+  >
+
+}
+
index 8523cddd86e76a5e30271619b74e7b83513fc2c4..8597a8ce14636f2d0f4b3a70c8430975e384ba99 100644 (file)
@@ -13,6 +13,7 @@
 int
 intlog2(int d)
 {
+  assert (d);
   int i=0;
   while (!(d&1)) 
     {
index e5a7583522e26fb30d825678e32530e25f757cd2..3c0320699b22582313824df0bbc84026f61fe1d8 100644 (file)
@@ -45,7 +45,7 @@
 bool
 is_duration_b (int t)
 {
-  return t == 1 << intlog2(t);
+  return t && t == 1 << intlog2(t);
 }