]> granicus.if.org Git - python/commit
default_3way_compare(): When comparing the pointers, they must be cast
authorBarry Warsaw <barry@python.org>
Sat, 20 Jan 2001 06:08:10 +0000 (06:08 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 20 Jan 2001 06:08:10 +0000 (06:08 +0000)
commit71ff8d5dc5dad320cf71fee03018c5ba4101b683
tree3503cedd6a4ea2879eae6b35c4e088d78fdf5981
parent7f3e4adf6057d93e8c372bebec61dda825e4b37e
default_3way_compare(): When comparing the pointers, they must be cast
to integer types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t).
ANSI specifies that pointer compares other than == and != to
non-related structures are undefined.  This quiets an Insure
portability warning.
Objects/object.c