Salome HOME
Compilation under Windows
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCouplingDataArrayTraits.hxx
index 3187b80eb8e52152247ac079cbf25c09012c1cf1..f6910ba2116f6e2fb572f591611de69578918aca 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -147,8 +147,8 @@ extern "C"
   static PyObject *callbackmcdataarrayint64_call(PyCallBackDataArrayInt64 *self, PyObject *args, PyObject *kw)
   {
     if(self->_pt_mc)
-      {
-        MEDCoupling::MemArray<long>& mma=self->_pt_mc->accessToMemArray();
+      {        
+        MEDCoupling::MemArray<MEDCoupling::Int64>& mma=self->_pt_mc->accessToMemArray();
         mma.destroy();
       }
     Py_XINCREF(Py_None);
@@ -425,7 +425,7 @@ struct NPYTraits<int>
 };
 
 template<>
-struct NPYTraits<long>
+struct NPYTraits<MEDCoupling::Int64>
 {
   static const int NPYObjectType=NPY_INT64;
   static PyTypeObject *NPYFunc;