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", |