Permalink
Browse files

Fix ctypes bug in version check for poll timeout.

  • Loading branch information...
1 parent 8dee644 commit 8119b8c89bd68931d90201c92e6c730dbd4fd194 @kahseng kahseng committed Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 zmq/_zmq.py
View
@@ -517,7 +517,7 @@ def _poll(sockets, timeout=-1):
timeout : int
The number of milliseconds to poll for. Negative means no timeout.
"""
- if major < 3:
+ if major < c_int(3):
# timeout is us in 2.x, ms in 3.x
# expected input is ms (matches 3.x)
timeout = 1000 * timeout

0 comments on commit 8119b8c

Please sign in to comment.