Since g++ 2.95.x on our solaris server doesn't have macros to check
for infinity and NaN these checks have been removed from the source code and a protected divided function node is now used.
This commit is contained in:
parent
30616fca42
commit
8f1af522a6
2 changed files with 9 additions and 32 deletions
|
|
@ -160,12 +160,6 @@ class Node
|
|||
|
||||
}
|
||||
|
||||
// if the result is infinite (positive or negative) or not_a_number (nan) then result becomes 0
|
||||
// however some versions of gcc (e.g. 2.95.2 on solaris) don't have the finite(x) defined
|
||||
#ifdef finite
|
||||
if (!finite(result))
|
||||
result=0;
|
||||
#endif
|
||||
}
|
||||
|
||||
template<class Children>
|
||||
|
|
|
|||
Reference in a new issue