Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3463)

Unified Diff: lily/mensural-ligature-engraver.cc

Issue 563460043: Make all int -> Real casts explicit (Closed)
Patch Set: static_cast Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lily/mensural-ligature-engraver.cc
diff --git a/lily/mensural-ligature-engraver.cc b/lily/mensural-ligature-engraver.cc
index 74471d1c747a3cc5a622aae9b723ab44db6dc0c9..887fe9c0ae75359f0eb0d79ae5b2db03b8e53205 100644
--- a/lily/mensural-ligature-engraver.cc
+++ b/lily/mensural-ligature-engraver.cc
@@ -460,7 +460,7 @@ Mensural_ligature_engraver::fold_up_primitives (vector<Grob_info> const &primiti
vert_shift -= delta * staff_space;
}
else
- min_length += head_width * dot_count;
+ min_length += head_width * static_cast<Real> (dot_count);
dot_gr->translate_axis (vert_shift, Y_AXIS);
« no previous file with comments | « lily/lookup.cc ('k') | lily/page-layout-problem.cc » ('j') | lily/page-layout-problem.cc » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b