Index: trunk/Mars/mcore/MemoryManager.h
===================================================================
--- trunk/Mars/mcore/MemoryManager.h	(revision 17779)
+++ trunk/Mars/mcore/MemoryManager.h	(revision 17849)
@@ -149,5 +149,5 @@
             throw std::runtime_error("Cannot change the chunk size while there is memory in use");
         if (getMaxMemory()<size)
-            throw std::runtime_error("Chunk size ("+std::to_string(size)+") larger than allowed memory ("+std::to_string(getMaxMemory())+")");
+            throw std::runtime_error("Chunk size ("+std::to_string((long long int)size)+") larger than allowed memory ("+std::to_string((long long int)getMaxMemory())+")");
 #else
         if (getInUse() || getMaxMemory()<size)
Index: trunk/Mars/mcore/zfits.h
===================================================================
--- trunk/Mars/mcore/zfits.h	(revision 17779)
+++ trunk/Mars/mcore/zfits.h	(revision 17849)
@@ -51,5 +51,5 @@
             return fits::IsFileOk();
 
-        const bool rawsum = GetStr("RAWSUM") == std::to_string(fRawsum.val());
+        const bool rawsum = GetStr("RAWSUM") == std::to_string((long long int)fRawsum.val());
         return fits::IsFileOk() && rawsum;
     };
