patch to mawk0.97

Mike Brennan brennan at ssc-vax.UUCP
Sat May 25 00:50:39 AEST 1991


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 at bcsaic.boeing.com
206-773-4425



More information about the Alt.sources.d mailing list