]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/interval.hh
release: 0.1.58
[lilypond.git] / flower / include / interval.hh
index 7a868a31ab9b92b8eac30849c01eae4c092613ac..2d7488aeeffa8efcbe71b7fc0a92006888bc8f1f 100644 (file)
@@ -26,7 +26,14 @@ struct Interval_t {
   static T infinity() ;
   static String T_to_str (T arg);
     
-  T center() { return (left + right) / T(2);}
+  // ugh, egcs 1.02 ices on this
+//  T center() { return (left + right) / T(2);}
+  // and can't handle this either
+  // anyone want to make a bug report?
+  T center() {
+    T two (2);
+    return (left + right) / two;
+  }
   void translate (T t) {
     left += t;
     right += t;