Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/fbt/fix_french_translation'
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_File.cxx
diff --git
a/src/SMESHUtils/SMESH_File.cxx
b/src/SMESHUtils/SMESH_File.cxx
index fd3daf555c0f3209d713feacf35a55971e25e68c..556212201577637d642265fd613a4cc9ecde78b8 100644
(file)
--- a/
src/SMESHUtils/SMESH_File.cxx
+++ b/
src/SMESHUtils/SMESH_File.cxx
@@
-75,7
+75,7
@@
SMESH_File::~SMESH_File()
bool SMESH_File::open()
{
bool SMESH_File::open()
{
-
int
length = size();
+
long
length = size();
if ( !_map && length > 0 )
{
#ifdef WIN32
if ( !_map && length > 0 )
{
#ifdef WIN32
@@
-188,7
+188,7
@@
long SMESH_File::size()
boost::uintmax_t size = boofs::file_size( _name, err );
_error = err.message();
boost::uintmax_t size = boofs::file_size( _name, err );
_error = err.message();
- return
err ? -1 : (long) size
;
+ return
!err ? (long) size : -1
;
}
//================================================================================
}
//================================================================================