[Pdns-dev] Re: cvs version not up to date

Norbert Sendetzky norbert at linuxnetworks.de
Sun Feb 15 19:26:04 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 08 February 2004 14:37, Norbert Sendetzky wrote:
> What scares me more is this line:
>
> 	for( i = 3; i >= 4-bits/32; i-- )
>
> The result of 4-bits/32 is a float and it's compared to an integer.
> I don't know if this is good on all platforms.

I've rewritten this part, because it's always a bad idea to compare 
integer and float.

Additionally I've extended the test program to do all checks 
automatically for easier regression testing.


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAkAvucAACgkQxMLs5v5/7eC4WwCgshQNfrqyr0fbSKzDifaeRQnU
32YAn0rtT4xo5BYMMZ9PrGc/kN/CU+dP
=r6Cc
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iputils.cc
Type: text/x-c++src
Size: 2851 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20040215/7f4060a7/iputils.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iputils.hh
Type: text/x-c++hdr
Size: 2090 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20040215/7f4060a7/iputils-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netmask-test.cc
Type: text/x-c++src
Size: 2392 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20040215/7f4060a7/netmask-test.bin


More information about the Pdns-dev mailing list