diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-05 00:13:51 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-05 00:13:51 +0200 |
commit | 9d77664e012a04da43177b218b7fb521e7aeb438 (patch) | |
tree | 4580cb7474fe4e79c6697cf4d4636984eeb709a4 /Python/errors.c | |
parent | a2d56984c72519a0ea046025876f92efcf40f2b2 (diff) | |
download | cpython-git-9d77664e012a04da43177b218b7fb521e7aeb438.tar.gz |
Issue #9566: Fix a compiler warning on Windows 64-bit in namespace_init()
The result type is int, return -1 to avoid a compiler warning (cast Py_ssize_t
to int). PyObject_Size() can only fail with -1, and anyway a constructor
should return -1 on error, not an arbitrary negative number.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions