calcPerform

Bug #541095 reported by Andrew Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
Medium
Andrew Johnson

Bug Description

It is possible for calcPerform to return OK even if the expression result is a NaN (Not a Number).

Additional information:
Category and priority fields changed, status resolved again - the Update Bug page allows this.

Original Mantis Bug: mantis-7
    http://www.aps.anl.gov/epics/mantis/view_bug_page.php?f_id=7

Tags: libcom 3.13
Revision history for this message
Andrew Johnson (anj) wrote :

This can be fixed for vxWorks by changing /src/libCom/calcPerform.c

diff -r1.31.6.1 calcPerform.c
104a105,106
> #include <private/mathP.h> /* For isNan*/
> #define isnan isNan
517c519
< return(0);
---
> return((isnan(*presult) ? -1 : 0));

Note that this fix will break any non-vxWorks uses of calcPerform such as for MEDM.

Revision history for this message
Andrew Johnson (anj) wrote :

Experimenting change of category

Revision history for this message
Andrew Johnson (anj) wrote :

Fixed in R3.13.7

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.