It was possible for calcPerform to return a nan (not a number)

This commit is contained in:
Marty Kraimer
2002-04-08 15:03:06 +00:00
parent cd6f33ef27
commit 2cbee21119

View File

@@ -102,6 +102,8 @@
#ifdef vxWorks
#include <vxWorks.h>
#include <private/mathP.h> /* For isNan*/
#define isnan isNan
#endif
#include <stdlib.h>
@@ -514,7 +516,7 @@ printf ("*FINISHED*\n");
*presult = *pstacktop;
else
return(-1);
return(0);
return((isnan(*presult) ? -1 : 0));
}