From: Keith OHara Date: Sun, 16 Oct 2011 06:07:55 +0000 (-0700) Subject: lily/staff-symbol: cast to avoid unhelpful warnings X-Git-Tag: release/2.15.15-1~44 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=97bc5c1e905890cd66669a6132e118bead8abfdc;p=lilypond.git lily/staff-symbol: cast to avoid unhelpful warnings --- diff --git a/lily/staff-symbol.cc b/lily/staff-symbol.cc index abfbe0ef0d..80be13b993 100644 --- a/lily/staff-symbol.cc +++ b/lily/staff-symbol.cc @@ -181,7 +181,7 @@ Staff_symbol::ledger_positions (Grob *me, int pos) ledger_fill.add_point (pos + 0.5 * dir + ledger_extra * dir); // fill the Interval ledger_fill with ledger lines - int n = floor ((ledger_fill[DOWN] - min_pos) / cycle); + int n = (int) floor ((ledger_fill[DOWN] - min_pos) / cycle); Real current; SCM s = scm_cdr (ledger_positions); do @@ -226,7 +226,7 @@ Staff_symbol::ledger_positions (Grob *me, int pos) } else { - int ledger_count = floor ((abs (nearest_line - pos) + ledger_extra) / 2); + int ledger_count = (int) floor ((abs (nearest_line - pos) + ledger_extra) / 2); values.resize (ledger_count); for (int i = 0; i < ledger_count; i++) {