[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/kig/misc
From: Dominique Devriese <devriese () kde ! org>
Date: 2003-04-28 17:55:57
[Download RAW message or body]
CVS commit by domi:
fix suggested by Maurizio Paolini for a certain crash..
M +6 -1 kignumerics.cpp 1.6
--- kdeedu/kig/misc/kignumerics.cpp #1.5:1.6
@@ -232,5 +232,10 @@ double calcCubicRootwithNewton ( double
x -= p;
}
- assert (iterations < 100);
+ if( iterations >= 100 )
+ {
+ // Newton scheme did not converge..
+ // we should end up with an invalid Coordinate
+ return HUGE_VAL;
+ };
return x;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic