Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!rice!uw-beaver!ssc-vax!brennan From: brennan@ssc-vax.UUCP (Mike Brennan) Newsgroups: alt.sources.d Subject: patch to mawk0.97 Message-ID: <4032@ssc-bee.ssc-vax.UUCP> Date: 24 May 91 14:50:39 GMT Organization: Boeing Computer Services Lines: 33 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