Skip to content

Commit

Permalink
Fix ctypes bug in version check for poll timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
kahseng committed Sep 8, 2012
1 parent 8dee644 commit 8119b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmq/_zmq.py
Expand Up @@ -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
Expand Down

0 comments on commit 8119b8c

Please sign in to comment.