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

Unified Diff: lily/grob.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/general-scheme.cc ('k') | lily/lookup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/grob.cc
diff --git a/lily/grob.cc b/lily/grob.cc
index ddc3f147bf6f48ab3064931ca3fa9c27219d1287..8c191f4697d79c1ab529dcc5abbf53666b1b6aca 100644
--- a/lily/grob.cc
+++ b/lily/grob.cc
@@ -313,7 +313,7 @@ Grob::find_broken_piece (System *) const
void
Grob::translate_axis (Real y, Axis a)
{
- if (isinf (y) || isnan (y))
+ if (!std::isfinite (y))
{
programming_error ("Infinity or NaN encountered");
return;
@@ -479,7 +479,7 @@ Grob::extent (Grob const *refp, Axis a) const
}
// We never want nan, so we avoid shifting infinite values.
- if(!isinf (offset))
+ if(!std::isinf (offset))
real_ext.translate(offset);
else
warning(_f ("ignored infinite %s-offset",
« no previous file with comments | « lily/general-scheme.cc ('k') | lily/lookup.cc » ('j') | no next file with comments »

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