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
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



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