ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/06/12/13:58:07

Date: Fri, 12 Jun 92 13:00:26 EDT
From: DJ Delorie <dj AT ctron DOT com>
To: gershon AT gr DOT cs
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Bug in 386 code generation?

>double dbl_raise();

>double make_tics(tmin,tmax,logscale)
>double tmin,tmax;
>int logscale;
>{
>	double xr,xnorm,tics,tic,l10;

>	l10 = fabs(tmin-tmax);

>	if (logscale) {
>		tic = dbl_raise(10.0,(l10 >= 0.0 ) ? (int)l10 : ((int)l10-1));
>	}
>	return(tic);
>}

I hope you expect fabs to return an int, because you don't include
math.h to supply the return type.

DJ
dj AT ctron DOT com
Life is a banana.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019