summaryrefslogtreecommitdiff
path: root/qpid/python/commands
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-03-25 18:22:55 +0000
committerRafael H. Schloming <rhs@apache.org>2009-03-25 18:22:55 +0000
commitaf4d1bb1ec4a47a927aa9cf3d7fbad7491e99dae (patch)
treea5bf60937fc05331729410ef5f40c6e44b6f263c /qpid/python/commands
parentc411cf0bc8e6b3be2630e6db4be99fe1047e8c03 (diff)
downloadqpid-python-af4d1bb1ec4a47a927aa9cf3d7fbad7491e99dae.tar.gz
use longs for large hex constant literals, this avoids scary looking warnings on earlier versions of python
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@758389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/commands')
-rwxr-xr-xqpid/python/commands/qpid-cluster2
-rwxr-xr-xqpid/python/commands/qpid-stat2
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/commands/qpid-cluster b/qpid/python/commands/qpid-cluster
index 4bc40e5abc..07fa666041 100755
--- a/qpid/python/commands/qpid-cluster
+++ b/qpid/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/qpid/python/commands/qpid-stat b/qpid/python/commands/qpid-stat
index 9d41f4e966..1f1d247bb1 100755
--- a/qpid/python/commands/qpid-stat
+++ b/qpid/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