brennan@ssc-vax.UUCP (Mike Brennan) (05/24/91)
Here is a patch to mawk0.97, execute.c, execute(),
case _TEST:
*** execute.c
--- execute.c_patch1
***************
*** 461,467 ****
free_STRING(string(sp)) ;
break ;
case C_STRNUM : /* test as a number */
! sp->dval = sp->dval ? 0.0 : 1.0 ;
free_STRING(string(sp)) ;
break ;
case C_MBSTRN :
--- 464,470 ----
free_STRING(string(sp)) ;
break ;
case C_STRNUM : /* test as a number */
! sp->dval = sp->dval ? 1.0 : 0.0 ;
free_STRING(string(sp)) ;
break ;
case C_MBSTRN :
Thanks goes to Carl Mascott for this fix.
Mike Brennan
brennan@bcsaic.boeing.com
206-773-4425