#endif
+#ifdef WIN32
+typedef long long mcPyPtrType;
+#else
+typedef long mcPyPtrType;
+#endif
+
template <class T> inline std::size_t ToSizeT(T val)
{
return static_cast<std::size_t>(val);
#endif
%template(i32vec) std::vector<int>;
#endif
-
+#ifdef WIN32
+typedef long long mcPyPtrType;
+#else
+typedef long mcPyPtrType;
+#endif
////////////////////
%typemap(out) MEDCoupling::MEDCouplingMesh*
%inline
{
- MEDCoupling::DataArrayByte *FromPyIntPtrToDataArrayByte(long intPtr)
+ MEDCoupling::DataArrayByte *FromPyIntPtrToDataArrayByte(mcPyPtrType intPtr)
{
MEDCoupling::DataArrayByte *ret(reinterpret_cast<MEDCoupling::DataArrayByte *>(intPtr));
return ret;