From 5e2c485f0db8a4ac3d65ea2db6a178fb902a6214 Mon Sep 17 00:00:00 2001 From: cord <1139172570@qq.com> Date: Thu, 26 Jun 2025 20:33:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dswig4.2.0=E4=BB=A5=E4=B8=8A?= =?UTF-8?q?=E7=9A=84=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IndexSDK/faiss-python/swig_ascendfaiss.swig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/IndexSDK/faiss-python/swig_ascendfaiss.swig b/IndexSDK/faiss-python/swig_ascendfaiss.swig index bc23ee7a7..bb301c74f 100644 --- a/IndexSDK/faiss-python/swig_ascendfaiss.swig +++ b/IndexSDK/faiss-python/swig_ascendfaiss.swig @@ -323,17 +323,17 @@ PyObject *swig_ptr (PyObject *a) return SWIG_NewPointerObj(data, SWIGTYPE_p_int, 0); } if(PyArray_TYPE(ao) == NPY_UINT64) { -#ifdef SWIGWORDSIZE64 - return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_long, 0); -#else +#ifdef SWIGWORDSIZE32 return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_long_long, 0); +#else + return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_long, 0); #endif } if(PyArray_TYPE(ao) == NPY_INT64) { -#ifdef SWIGWORDSIZE64 - return SWIG_NewPointerObj(data, SWIGTYPE_p_long, 0); -#else +#ifdef SWIGWORDSIZE32 return SWIG_NewPointerObj(data, SWIGTYPE_p_long_long, 0); +#else + return SWIG_NewPointerObj(data, SWIGTYPE_p_long, 0); #endif } PyErr_SetString(PyExc_ValueError, "did not recognize array type"); -- Gitee