From: vsr Date: Tue, 9 Nov 2021 10:57:27 +0000 (+0300) Subject: bos #26616 [CEA][Windows] type long MEDCOUPLING failing test X-Git-Tag: V9_8_0rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=6712a95b385dfb8db6ab119dd2cc0da77f063142;p=tools%2Fmedcoupling.git bos #26616 [CEA][Windows] type long MEDCOUPLING failing test --- diff --git a/src/MEDCoupling_Swig/MEDCouplingCommon.i b/src/MEDCoupling_Swig/MEDCouplingCommon.i index 1639e0751..ca7e73946 100644 --- a/src/MEDCoupling_Swig/MEDCouplingCommon.i +++ b/src/MEDCoupling_Swig/MEDCouplingCommon.i @@ -85,7 +85,11 @@ typedef long int mcIdType; #endif %template(i32vec) std::vector; #endif - +#ifdef WIN32 +typedef long long mcPyPtrType; +#else +typedef long mcPyPtrType; +#endif //////////////////// %typemap(out) MEDCoupling::MEDCouplingMesh* diff --git a/src/MEDCoupling_Swig/MEDCouplingMemArray.i b/src/MEDCoupling_Swig/MEDCouplingMemArray.i index 6afd214c3..d9433441a 100644 --- a/src/MEDCoupling_Swig/MEDCouplingMemArray.i +++ b/src/MEDCoupling_Swig/MEDCouplingMemArray.i @@ -3706,7 +3706,7 @@ typedef DataArrayInt64 DataArrayIdType; %inline { - MEDCoupling::DataArrayByte *FromPyIntPtrToDataArrayByte(long intPtr) + MEDCoupling::DataArrayByte *FromPyIntPtrToDataArrayByte(mcPyPtrType intPtr) { MEDCoupling::DataArrayByte *ret(reinterpret_cast(intPtr)); return ret;