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

Unified Diff: lily/lookup.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
« no previous file with comments | « no previous file | lily/mensural-ligature-engraver.cc » ('j') | lily/page-layout-problem.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/lookup.cc
diff --git a/lily/lookup.cc b/lily/lookup.cc
index 34ceadc35ed2d8669f1229495ba32d5d66b8aba2..a0c1521b4a6123076181c1bc94a0cbe2f5d89b60 100644
--- a/lily/lookup.cc
+++ b/lily/lookup.cc
@@ -294,7 +294,7 @@ Lookup::round_filled_polygon (vector<Offset> const &points,
Offset center;
for (vsize i = 0; i < points.size (); i++)
center += points[i];
- center /= points.size ();
+ center /= static_cast<Real> (points.size ());
Real area = 0.0;
Offset last = points.back () - center;
« no previous file with comments | « no previous file | lily/mensural-ligature-engraver.cc » ('j') | lily/page-layout-problem.cc » ('J')

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