Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!kth!draken!liuida!prosys!ath From: ath@helios.prosys.se (Anders Thulin) Newsgroups: gnu.ghostscript.bug Subject: Re: GhostScript v1.2 comments Message-ID: <406@helios.prosys.se> Date: 29 Mar 89 06:50:24 GMT References: <10581@ibmpcug.UUCP> Reply-To: ath@prosys.se Organization: Programsystem AB, Linkoping, SWEDEN Lines: 15 In article <10581@ibmpcug.UUCP> thawk1@ibmpcug.UUCP (Timothy Hawkins) writes: > >There is a bug in the rand function on 1.2, it returns negative numbers >which is at odds with the adobe standard, how ever it is easy to fix. >just add an value = labs(value); inside the rand function before >pushing the value back on the stack.. Just make sure that your labs() handles MIN_LONG (-MAX_LONG-1) properly. Some of them don't: they just return it unchanged. This goes for abs() too. -- Anders Thulin INET : ath@prosys.se ProgramSystem AB UUCP : ...!{uunet,mcvax}!enea!prosys!ath Teknikringen 2A PHONE: +46 (0)13 21 40 40 S-583 30 Linkoping, Sweden FAX : +46 (0)13 21 36 35