summaryrefslogtreecommitdiff
path: root/src/main/curve.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/curve.c')
-rw-r--r--src/main/curve.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/curve.c b/src/main/curve.c
index 03c2ede..3820dea 100644
--- a/src/main/curve.c
+++ b/src/main/curve.c
@@ -1,5 +1,5 @@
/*
- * "$Id: curve.c,v 1.51 2005/04/10 22:57:40 rlk Exp $"
+ * "$Id: curve.c,v 1.52 2006/09/12 19:03:32 easysw Exp $"
*
* Print plug-in driver utility functions for the GIMP.
*
@@ -538,7 +538,7 @@ int
stp_curve_set_gamma(stp_curve_t *curve, double fgamma)
{
check_curve(curve);
- if (curve->wrap_mode || ! finite(fgamma) || fgamma == 0.0)
+ if (curve->wrap_mode || ! isfinite(fgamma) || fgamma == 0.0)
return 0;
clear_curve_data(curve);
curve->gamma = fgamma;
@@ -570,7 +570,7 @@ stp_curve_set_data(stp_curve_t *curve, size_t count, const double *data)
/* Validate the data before we commit to it. */
stp_sequence_get_bounds(curve->seq, &low, &high);
for (i = 0; i < count; i++)
- if (! finite(data[i]) || data[i] < low || data[i] > high)
+ if (! isfinite(data[i]) || data[i] < low || data[i] > high)
{
stp_deprintf(STP_DBG_CURVE_ERRORS,
"stp_curve_set_data: datum out of bounds: "
@@ -620,7 +620,7 @@ stp_curve_set_data_points(stp_curve_t *curve, size_t count,
stp_sequence_get_bounds(curve->seq, &low, &high);
for (i = 0; i < count; i++)
{
- if (! finite(data[i].y) || data[i].y < low || data[i].y > high)
+ if (! isfinite(data[i].y) || data[i].y < low || data[i].y > high)
{
stp_deprintf(STP_DBG_CURVE_ERRORS,
"stp_curve_set_data_points: datum out of bounds: "
@@ -918,7 +918,7 @@ stp_curve_rescale(stp_curve_t *curve, double scale,
}
}
- if (! finite(nbhi) || ! finite(nblo))
+ if (! isfinite(nbhi) || ! isfinite(nblo))
return 0;
count = get_point_count(curve);
@@ -1302,7 +1302,7 @@ interpolate_points(stp_curve_t *a, stp_curve_t *b,
pa += pb;
else
pa *= pb;
- if (! finite(pa))
+ if (! isfinite(pa))
{
stp_deprintf(STP_DBG_CURVE_ERRORS,
"interpolate_points: interpolated point %lu is invalid\n",