On Thu, Mar 25, 2010 at 10:38 PM, Monty Taylor <[email protected]> wrote:
> I'm sorry... I seem to remember using the word 'sanely' ... and by that I 
> didn't mean intoducing bitwise operator and bitmasks in python. I thing 
> &0xFFFFFFFF to insert an ip address is, well, FAIL.

Hehe :)  It's even better in PHP on 32-bit architectures. :)

$signed_int= -1
$unsigned_int_as_a_string= sprintf("%u", $signed_int);

Cheers,

Jay

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to