[sane-devel] hp5400_internal.c rintf()

Carsten Neumann deltor at snafu.de
Wed Apr 30 00:06:54 BST 2003


On Tue, 29 Apr 2003, Henning Meier-Geinitz wrote:
> Hi,
> 
> On Fri, Apr 25, 2003 at 10:54:25AM +0200, Henning Meier-Geinitz wrote:
> [rintf()]
> > The line is:
> > 
> >     int bpp = rintf ((float) htonl (res.transfersize) / pixels);
> >     
> > What about this:
> > 
> >     int bpp = (int) (float) htonl (res.transfersize) / pixels + 0.5);

Although this might yield the same result, but
are you sure you don't mean ntohl() instead of htonl()?

> 
> I have changed that in CVS now.
> 
> Ciao,
>   Henning

Best regards

	Carsten

-- 
Certify your minority, support spyware!
Soon to come as TCPA and Palladium from Microsoft & Co.




More information about the sane-devel mailing list