Re: [Plugins-writers] Converting a string to an int that's greater than 2^31-1

From: Renaud Deraison (deraison@private)
Date: Thu Oct 06 2005 - 16:57:26 PDT

On Oct 6, 2005, at 19:46, Jon Passki wrote:
> Yeah, if I can break it down ;-)  Cyclical answer, I know.  The
> string is an IP address, basically, in quad-octet form.  The moment
> any numeric routines are applied, it's converted to an int, rounded
> to 2^31.

No, it's converted to a signed int, so if you just perform bit- 
shifting operations then things are working.

What do you want to do exactly ?

                                 -- Renaud
Plugins-writers mailing list

This archive was generated by hypermail 2.1.3 : Thu Oct 06 2005 - 16:58:24 PDT