Salome HOME
bos #18963 [CEA 18962] Warnings in module compilations
authorvsr <vsr@opencascade.com>
Mon, 11 May 2020 08:05:39 +0000 (11:05 +0300)
committervsr <vsr@opencascade.com>
Mon, 11 May 2020 08:05:39 +0000 (11:05 +0300)
src/StudyData/StudyData_Object.cpp

index 86f919fb9e9fb830eb2fe9c16bb612a291895982..9732060d54c7db2917c70f894db3c474a3cc45bd 100644 (file)
@@ -66,9 +66,9 @@ void StudyData_Object::updateShape(const std::string theFile)
   if (myStream == theFile) { // absolutely identical shapes, no need to store
     return;
   }
-  size_t aDelta = myStream.size() - theFile.size();
+  long aDelta = (long)myStream.size() - (long)theFile.size();
   aDelta = aDelta < 0 ? -aDelta : aDelta;
-  size_t aSum = myStream.size() + theFile.size();
+  long aSum = (long)myStream.size() + (long)theFile.size();
   if (double(aDelta) / aSum < 0.05) { // size-difference is less than 10%
     // check numbers have the minimal differnce
     std::istringstream aMyStr(myStream);