operater xor (^)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
peeratep
Forum Newbie
Posts: 1
Joined: Wed Jul 19, 2006 11:39 pm

operater xor (^)

Post by peeratep »

on windows->
-2694274578 ^ 1136121015 = 484406617

on linux->
-2694274578 ^ 1136121015 = -1011362633

i want value 484406617 on linux..help me please!
Thank you...
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

one of the machine has 64bit architecture?
User avatar
ronverdonk
Forum Commoner
Posts: 34
Joined: Sat Jun 10, 2006 7:06 am
Location: Netherlands

Post by ronverdonk »

As I already replied in the other forum to which you posted this question:

You must have used at least one 64 bit machine, because 32 bit systems have a maximum signed integer range of -2147483648 to 2147483647.
Post Reply