Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!rti!trt From: trt@rti.UUCP Newsgroups: comp.bugs.4bsd Subject: Re: bc BUG!!!!! Message-ID: <1874@rti.UUCP> Date: Tue, 24-Nov-87 16:20:10 EST Article-I.D.: rti.1874 Posted: Tue Nov 24 16:20:10 1987 Date-Received: Sat, 28-Nov-87 07:07:34 EST References: <11595@hc.DSPO.GOV> Organization: Research Triangle Institute, RTP, NC Lines: 37 Keywords: bc Summary: Fix for bc -l problems There are some ancient problems in "bc -l" that have relatively ancient fixes. The following applies mainly to BSD, recent AT&T versions are probably fine as is. Diff diff listing for /usr/lib/lib.b: *** lib.b.orig Sat Oct 18 23:32:50 1986 --- lib.b Sat Feb 7 15:51:30 1987 *************** *** 4,6 **** define e(x){ ! auto a, b, c, d, e, g, w, y --- 4,8 ---- define e(x){ ! auto a, b, c, d, e, g, w, y, t ! /* ukc.4076, ukc!dcw, D.C. Wood, Univ. of Kent, */ ! /* Feb 3 1984 declare 't' as auto */ *************** *** 127,131 **** if(x==0) return(0) ! if(x==1) ! if(scale<52) return(.7853981633974483096156608458198757210492923498437764/1) t = scale --- 129,137 ---- if(x==0) return(0) ! /* umn-cs.410, umn-cs!herndon, Robert Herndon, */ ! /* Jan 31 1984, avoid if bug. */ ! if(x==1) { ! if(scale<52) { return(.7853981633974483096156608458198757210492923498437764/1) + } + } t = scale