[sane-devel] hp5400_internal.c rintf()

Carsten Neumann sane-devel@mostang.com
Wed, 30 Apr 2003 01:06:54 +0200


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

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

Best regards

=09Carsten

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