Salome HOME
updated copyright message
[modules/kernel.git] / src / HDFPersist / HDFattribute.cc
index 3c23e031d65bb43e05731683f8e44f8fec2e943a..ed57cbdaf4d61ea0c18b09c7fd357c220436774e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -98,7 +98,7 @@ hdf_type HDFattribute::GetType()
 size_t HDFattribute::GetSize()
 {
   if(_size == 0) {
-    if((_size = HDFattrGetSize(_id)) < 0)
+    if((long)(_size = HDFattrGetSize(_id)) < 0)
       throw HDFexception("Can't determine the size of data in the attribute");
   }
   return _size;