modf

Steven M. Schultz sms at moe.2bsd.com
Tue Apr 7 08:03:34 AEST 1998


Bob -

> Change the indicated code line to be:
> 
> ==>	FPS = setfcc (FPS, modfrac.h, newV);
> 
> and recompile.
> 
> Thanks to Warren Toomey for getting me the source to FACTOR, which
> showed the bug.

	The 'primes' program also uses 'modf' so it might encounter the same
	problem as FACTOR.

> (I can't believe this is the problem with vi, but who knows?  A bug in
> MODf could affect the binary to decimal conversion routines in the runtime

	'modf' is used in the runtime routines which compute 'long' (and
	unsigned long) remainders.  So if 'vi' is doing something like 
	"long % X" or "unsigned long % X" it's possible (likely) that it's 
	getting a wrong answer and becoming extremely confused.

	I'll check this later tonight.

	Steven


Received: (from major at localhost)
	by minnie.cs.adfa.oz.au (8.8.5/8.8.5) id IAA01023
	for pups-liszt; Tue, 7 Apr 1998 08:59:25 +1000 (EST)
X-Authentication-Warning: minnie.cs.adfa.oz.au: major set sender to owner-pups at minnie.cs.adfa.oz.au using -f


More information about the TUHS mailing list