[sane-devel] hp5400_internal.c rintf()

Henning Meier-Geinitz henning at meier-geinitz.de
Tue Apr 29 21:03:00 BST 2003


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);

I have changed that in CVS now.

Ciao,
  Henning



More information about the sane-devel mailing list