summaryrefslogtreecommitdiff
path: root/python/commands
diff options
context:
space:
mode:
Diffstat (limited to 'python/commands')
-rwxr-xr-xpython/commands/qpid-cluster2
-rwxr-xr-xpython/commands/qpid-stat2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/commands/qpid-cluster b/python/commands/qpid-cluster
index 4bc40e5abc..07fa666041 100755
--- a/python/commands/qpid-cluster
+++ b/python/commands/qpid-cluster
@@ -70,7 +70,7 @@ class IpAddr:
self.addr = (int(nums[0]) << 24) + (int(nums[1]) << 16) + (int(nums[2]) << 8) + int(nums[3])
def bestAddr(self, addrPortList):
- bestDiff = 0xFFFFFFFF
+ bestDiff = 0xFFFFFFFFL
bestAddr = None
for addrPort in addrPortList:
diff = IpAddr(addrPort[0]).addr ^ self.addr
diff --git a/python/commands/qpid-stat b/python/commands/qpid-stat
index 9d41f4e966..1f1d247bb1 100755
--- a/python/commands/qpid-stat
+++ b/python/commands/qpid-stat
@@ -76,7 +76,7 @@ class IpAddr:
self.addr = (int(nums[0]) << 24) + (int(nums[1]) << 16) + (int(nums[2]) << 8) + int(nums[3])
def bestAddr(self, addrPortList):
- bestDiff = 0xFFFFFFFF
+ bestDiff = 0xFFFFFFFFL
bestAddr = None
for addrPort in addrPortList:
diff = IpAddr(addrPort[0]).addr ^ self.addr