comparison libinterp/corefcn/ls-mat5.cc @ 17577:c702371ff6df classdef

maint: periodic merge of default to classdef
author John W. Eaton <jwe@octave.org>
date Sat, 05 Oct 2013 11:22:09 -0400
parents 498b2dd1bd56 259c1f295a1e
children 93b3d03b05e7
comparison
equal deleted inserted replaced
17414:20d1b911b4e7 17577:c702371ff6df
1958 bool too_large_for_float = false; 1958 bool too_large_for_float = false;
1959 for (octave_idx_type i = 0; i < nel; i++) 1959 for (octave_idx_type i = 0; i < nel; i++)
1960 { 1960 {
1961 double tmp = val[i]; 1961 double tmp = val[i];
1962 1962
1963 if (! (xisnan (tmp) || xisinf (tmp)) 1963 if (xfinite (tmp)
1964 && fabs (tmp) > std::numeric_limits<float>::max ()) 1964 && fabs (tmp) > std::numeric_limits<float>::max ())
1965 { 1965 {
1966 too_large_for_float = true; 1966 too_large_for_float = true;
1967 break; 1967 break;
1968 } 1968 }