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

Unified Diff: lily/break-alignment-interface.cc

Issue 569220043: Issue 5658: Include <cmath> consistently, not <math.h> (Closed)
Patch Set: Cleanup: !isinf && !isnan == isfinite Created 4 years, 2 months 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 | « lily/bezier.cc ('k') | lily/chord-tremolo-engraver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/break-alignment-interface.cc
diff --git a/lily/break-alignment-interface.cc b/lily/break-alignment-interface.cc
index 176d10217b5f43e031bdf4878eefcdf9ce3a3512..7f9f8809955dcfa12cf7ed26c5222b262f11bf31 100644
--- a/lily/break-alignment-interface.cc
+++ b/lily/break-alignment-interface.cc
@@ -384,7 +384,7 @@ Break_aligned_interface::calc_extent_aligned_anchor (SCM smob)
Real alignment = robust_scm2double (me->get_property ("break-align-anchor-alignment"), 0.0);
Interval iv = me->extent (me, X_AXIS);
- if (isinf (iv[LEFT]) && isinf (iv[RIGHT])) /* avoid NaN */
+ if (std::isinf (iv[LEFT]) && std::isinf (iv[RIGHT])) /* avoid NaN */
return scm_from_double (0.0);
return scm_from_double (iv.linear_combination (alignment));
« no previous file with comments | « lily/bezier.cc ('k') | lily/chord-tremolo-engraver.cc » ('j') | no next file with comments »

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