bool SMESH_File::open()
{
- int length = size();
+ long length = size();
if ( !_map && length > 0 )
{
#ifdef WIN32
boost::uintmax_t size = boofs::file_size( _name, err );
_error = err.message();
- return err ? -1 : (long) size;
+ return !err ? (long) size : -1;
}
//================================================================================