]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
bos #26616 [CEA][Windows] type long MEDCOUPLING failing test
authorvsr <vsr@opencascade.com>
Tue, 9 Nov 2021 10:57:27 +0000 (13:57 +0300)
committervsr <vsr@opencascade.com>
Wed, 10 Nov 2021 13:57:05 +0000 (16:57 +0300)
src/MEDCoupling_Swig/MEDCouplingCommon.i
src/MEDCoupling_Swig/MEDCouplingMemArray.i

index 1639e0751e394a059ab6de26b5abeb3a058562e9..ca7e739462a6ff5de0d77d41ddd2d3af8b1be409 100644 (file)
@@ -85,7 +85,11 @@ typedef long int mcIdType;
 #endif
 %template(i32vec) std::vector<int>;
 #endif
-
+#ifdef WIN32
+typedef long long mcPyPtrType;
+#else
+typedef long mcPyPtrType;
+#endif
 
 ////////////////////
 %typemap(out) MEDCoupling::MEDCouplingMesh*
index 6afd214c3aac200df47cd39865dfdc0cb69104c5..d9433441aa3381a98e48f861091e465e600e427f 100644 (file)
@@ -3706,7 +3706,7 @@ typedef DataArrayInt64 DataArrayIdType;
 
 %inline
 {
-  MEDCoupling::DataArrayByte *FromPyIntPtrToDataArrayByte(long intPtr)
+  MEDCoupling::DataArrayByte *FromPyIntPtrToDataArrayByte(mcPyPtrType intPtr)
   {
     MEDCoupling::DataArrayByte *ret(reinterpret_cast<MEDCoupling::DataArrayByte *>(intPtr));
     return ret;