From e00d4db1bfef424802c514fdb690070947c7cb40 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 25 Feb 2019 15:09:05 +0300 Subject: [PATCH] Compilation on Windows. --- src/MEDCoupling/MCType.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MEDCoupling/MCType.hxx b/src/MEDCoupling/MCType.hxx index b0a03d3e4..c667a03c8 100644 --- a/src/MEDCoupling/MCType.hxx +++ b/src/MEDCoupling/MCType.hxx @@ -32,7 +32,11 @@ namespace MEDCoupling #else using mcIdType = std::int64_t; #endif +#ifdef WIN32 + inline mcIdType ToIdType(size_t val) { return mcIdType(val); } +#else inline mcIdType ToIdType(std::size_t val) { return mcIdType(val); } +#endif } #define DataArrayInt DataArrayInt32 -- 2.39.2