]> granicus.if.org Git - python/commit
Invert the checks in get_[u]long and get_[u]longlong. The intent was
authorThomas Heller <theller@ctypes.org>
Thu, 24 Jan 2008 19:15:02 +0000 (19:15 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 24 Jan 2008 19:15:02 +0000 (19:15 +0000)
commit5ca924038dd196217cedd4b02480ea16acd634f3
treee1a954d47e19d4006c157858e1d6618004b3f0fe
parent5a05364049a7b0c3eeee94fb7b77e6b41036b3ae
Invert the checks in get_[u]long and get_[u]longlong.  The intent was
to not accept float types; the result was that integer-like objects
were not accepted.

Ported from release25-maint.
Lib/ctypes/test/test_numbers.py
Modules/_ctypes/cfield.c