diff options
author | pg <pg@yandex-team.com> | 2024-10-11 10:22:30 +0300 |
---|---|---|
committer | pg <pg@yandex-team.com> | 2024-10-11 10:35:08 +0300 |
commit | 759d217781debc6eae3de2a2bce5c76c452ff6c4 (patch) | |
tree | 559b762dc9b317c8c9ceb28b40ea83785cb94bbd | |
parent | 3f579e6b3e904b26d224de2f24da6d8226d26530 (diff) | |
download | ydb-759d217781debc6eae3de2a2bce5c76c452ff6c4.tar.gz |
Untitled commit
commit_hash:3bb34c7656f9f425d9f9dbe140340f1d5b57586f
-rw-r--r-- | contrib/tools/cython/Cython/Utility/ImportExport.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/contrib/tools/cython/Cython/Utility/ImportExport.c b/contrib/tools/cython/Cython/Utility/ImportExport.c index d6f06ecd7d..1600e1a3e9 100644 --- a/contrib/tools/cython/Cython/Utility/ImportExport.c +++ b/contrib/tools/cython/Cython/Utility/ImportExport.c @@ -331,7 +331,7 @@ static PyTypeObject *__Pyx_ImportType_$cyversion(PyObject *module, const char *m size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_$cyversion check_size) { PyObject *result = 0; - char warning[200]; + //char warning[200]; Py_ssize_t basicsize; Py_ssize_t itemsize; #ifdef Py_LIMITED_API @@ -382,25 +382,10 @@ static PyTypeObject *__Pyx_ImportType_$cyversion(PyObject *module, const char *m itemsize = (Py_ssize_t)alignment; } if ((size_t)(basicsize + itemsize) < size) { - PyErr_Format(PyExc_ValueError, - "%.200s.%.200s size changed, may indicate binary incompatibility. " - "Expected %zd from C header, got %zd from PyObject", - module_name, class_name, size, basicsize); - goto bad; } if (check_size == __Pyx_ImportType_CheckSize_Error_$cyversion && (size_t)basicsize != size) { - PyErr_Format(PyExc_ValueError, - "%.200s.%.200s size changed, may indicate binary incompatibility. " - "Expected %zd from C header, got %zd from PyObject", - module_name, class_name, size, basicsize); - goto bad; } else if (check_size == __Pyx_ImportType_CheckSize_Warn_$cyversion && (size_t)basicsize > size) { - PyOS_snprintf(warning, sizeof(warning), - "%s.%s size changed, may indicate binary incompatibility. " - "Expected %zd from C header, got %zd from PyObject", - module_name, class_name, size, basicsize); - if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad; } /* check_size == __Pyx_ImportType_CheckSize_Ignore does not warn nor error */ return (PyTypeObject *)result; |