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
Fix compilation errors using gcc-5.X relating to explicit stream::operator bool()
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_File.cxx
diff --git
a/src/SMESHUtils/SMESH_File.cxx
b/src/SMESHUtils/SMESH_File.cxx
index 8d138b46cee114b2425be891aa87241073809f16..10c1f533f1d4a238613f739a18aa51a1233d453c 100644
(file)
--- a/
src/SMESHUtils/SMESH_File.cxx
+++ b/
src/SMESHUtils/SMESH_File.cxx
@@
-271,7
+271,7
@@
void SMESH_File::rewind()
bool SMESH_File::getInts(std::vector<int>& ints)
{
bool SMESH_File::getInts(std::vector<int>& ints)
{
-
in
t i = 0;
+
size_
t i = 0;
while ( i < ints.size() )
{
while ( !isdigit( *_pos ) && !eof()) ++_pos;
while ( i < ints.size() )
{
while ( !isdigit( *_pos ) && !eof()) ++_pos;
@@
-330,7
+330,7
@@
bool SMESH_File::writeRaw(const void* data, size_t size)
#else
ssize_t nbWritten = ::write( _file, data, size );
#else
ssize_t nbWritten = ::write( _file, data, size );
- return ( nbWritten == size );
+ return ( nbWritten ==
(ssize_t)
size );
#endif
}
#endif
}