The following patch makes Compute _not_ to crash if a field with no
invalid position component is passed into invalid(). It allows a
compute to add invalid markers into an array that can be used for
creating an updated invalid positions component without mocking with
the already invalid positions (of present) as in the following
expression:
byte ( invalid(a) || (a < 9.9e+36 ? 0 : 1 ) )
I can not see that it can break anything by being applied as the problem
was that handle is used as a pointer to an object without making sure it
really points to something
/Nils
[EMAIL PROTECTED] dx]$ cvs diff -p src/exec/libdx/invalid.c
Index: src/exec/libdx/invalid.c
===================================================================
RCS file: /src/master/dx/src/exec/libdx/invalid.c,v
retrieving revision 1.8
diff -p -r1.8 invalid.c
*** src/exec/libdx/invalid.c 1 Mar 2002 01:33:38 -0000 1.8
--- src/exec/libdx/invalid.c 30 Aug 2002 16:42:05 -0000
*************** DXIsElementInvalidSequential(InvalidComp
*** 3365,3371 ****
}
else
*/
! return DXIsElementInvalid(handle, index);
}
--- 3365,3374 ----
}
else
*/
! if(handle)
! return DXIsElementInvalid(handle, index);
! else
! return 0x0;
}