changeset 11178:c08e9d4e54c7

cquad.cc (Fcquad): use octave_Inf, not INFINITY
author John W. Eaton <jwe@octave.org>
date Tue, 02 Nov 2010 19:15:19 -0400
parents 30bcd1aa9f09
children 6ead75935ebf
files src/ChangeLog src/DLD-FUNCTIONS/cquad.cc
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Nov 02 16:46:08 2010 +0100
+++ b/src/ChangeLog	Tue Nov 02 19:15:19 2010 -0400
@@ -1,3 +1,7 @@
+2010-11-02  John W. Eaton  <jwe@octave.org>
+
+	* DLD-FUNCTIONS/cquad.cc (Fcquad): Use octave_Inf, not INFINITY.
+
 2010-11-02  David Bateman  <dbateman@free.fr>
 
 	* ls-hdf5.cc (bool hdf5_get_scalar_attr (hid_t, hid_t,
--- a/src/DLD-FUNCTIONS/cquad.cc	Tue Nov 02 16:46:08 2010 +0100
+++ b/src/DLD-FUNCTIONS/cquad.cc	Tue Nov 02 19:15:19 2010 -0400
@@ -2025,7 +2025,7 @@
                                   && ivl->c[0] / iv->c[0] > 2);
           if (ivl->ndiv > ndiv_max && 2 * ivl->ndiv > ivl->rdepth)
             {
-              igral = copysign (INFINITY, igral);
+              igral = copysign (octave_Inf, igral);
               warning ("cquad: divergent integral detected.");
               break;
             }
@@ -2123,7 +2123,7 @@
                                   && ivr->c[0] / iv->c[0] > 2);
           if (ivr->ndiv > ndiv_max && 2 * ivr->ndiv > ivr->rdepth)
             {
-              igral = copysign (INFINITY, igral);
+              igral = copysign (octave_Inf, igral);
               warning ("cquad: divergent integral detected.");
               break;
             }