]> granicus.if.org Git - python/commit
PyInstance_DoBinOp(): When comparing the pointers, they must be cast
authorBarry Warsaw <barry@python.org>
Fri, 18 Aug 2000 04:57:32 +0000 (04:57 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 18 Aug 2000 04:57:32 +0000 (04:57 +0000)
commitdc55d715bbe23ccda3942da667211ff796f31ed2
treefb5d70f461292fd3cb0e323eaea4cd8c26df61f3
parentbc7c7f991c4654cb270cc09272559534de492d30
PyInstance_DoBinOp(): 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/classobject.c