diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-07-22 15:43:59 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-07-22 15:43:59 (GMT) |
commit | 524714eeda70de01046e3b4736516f41d7d11010 (patch) | |
tree | ce1ee1d3cfad2a646f46d1581a677ba4c4ccde4f /Tools/demo/queens.py | |
parent | 0cec877230a9232378eb2c7e21348029bbe83fea (diff) | |
download | cpython-524714eeda70de01046e3b4736516f41d7d11010.zip cpython-524714eeda70de01046e3b4736516f41d7d11010.tar.gz cpython-524714eeda70de01046e3b4736516f41d7d11010.tar.bz2 |
socket: use INVALID_SOCKET
* Replace "fd = -1" with "fd = INVALID_SOCKET"
* Replace "fd < 0" with "fd == INVALID_SOCKET": SOCKET_T is unsigned on Windows
Bug found by Pavel Belikov ("Fragment N1"):
http://www.viva64.com/en/b/0414/#ID0ECDAE
Diffstat (limited to 'Tools/demo/queens.py')
0 files changed, 0 insertions, 0 deletions