summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2010-10-02 15:26:29 -0700
committerAvery Pennarun <apenwarr@gmail.com>2010-10-02 15:26:29 -0700
commit5070f2ffcfcb85925aab46e51079605b8d7f065d (patch)
tree6767ffe65340499b37cae2e5cd7fc8efb9015143
parentb219b523c2abcb9106622a100c16d2106534f47a (diff)
Oops, missed another << operator to replace with _shl().
For python 2.3, of course.
-rw-r--r--server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.py b/server.py
index ae7c706..4bf8190 100644
--- a/server.py
+++ b/server.py
@@ -37,7 +37,7 @@ def _maskbits(netmask):
if not netmask:
return 32
for i in range(32):
- if netmask[0] & (1<<i):
+ if netmask[0] & _shl(1, i):
return 32-i
return 0