Index: trunk/stac/src/stacRejection.c
===================================================================
--- trunk/stac/src/stacRejection.c	(revision 7543)
+++ trunk/stac/src/stacRejection.c	(revision 8782)
@@ -144,5 +144,5 @@
                                     // Calculate the gradient
                                     grads->data.F32[j] = stacGradient(inputs->data[j], xPix, yPix);
-                                    if (finite(grads->data.F32[j])) {
+                                    if (isfinite(grads->data.F32[j])) {
                                         gradsMask->data.U8[j] = 0;
                                         numGrads++;
