From 536c566c02d4479f0ef92f5e549e14fbc28171ca Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Fri, 7 May 2004 00:39:51 +0000 Subject: more warning fixes (#122498) --- isys/isys.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'isys/isys.py') diff --git a/isys/isys.py b/isys/isys.py index 72d99e3a9..7532490f8 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -371,18 +371,18 @@ def mknod(pathname, mode, dev): return _isys.mknod(pathname, mode, dev) def inet_ntoa (addr): - return "%d.%d.%d.%d" % ((addr >> 24) & 0x000000ff, - (addr >> 16) & 0x000000ff, - (addr >> 8) & 0x000000ff, - addr & 0x000000ff) + return "%d.%d.%d.%d" % ((addr >> 24) & 0x000000ffL, + (addr >> 16) & 0x000000ffL, + (addr >> 8) & 0x000000ffL, + addr & 0x000000ffL) def inet_aton (addr): quad = string.splitfields (addr, ".") try: - rc = ((string.atoi (quad[0]) << 24) + - (string.atoi (quad[1]) << 16) + - (string.atoi (quad[2]) << 8) + - string.atoi (quad[3])) + rc = ((long (quad[0]) << 24) + + (long (quad[1]) << 16) + + (long (quad[2]) << 8) + + long (quad[3])) except IndexError: raise ValueError return rc -- cgit