Commit 627e3f5d authored by Kirill Terekhov's avatar Kirill Terekhov

Fix warnings

parent 6b241b0f
......@@ -57,7 +57,8 @@ namespace INMOST
ElementArray<ElementSet> newsets(this);
ElementArray<Node> f_nodes(this);
ElementArray<Face> c_faces(this);
fscanf(f," %d %d %d %d %d",&nbnodes,&nbpolygon,&nbpolyhedra,&nbzones,&volcorr);
int ret = fscanf(f," %d %d %d %d %d",&nbnodes,&nbpolygon,&nbpolyhedra,&nbzones,&volcorr);
if( ret != 5 ) throw BadFile;
newnodes.resize(nbnodes);
newpolygon.resize(nbpolygon);
newpolyhedron.resize(nbpolyhedra);
......@@ -303,4 +304,4 @@ namespace INMOST
}
}
#endif
\ No newline at end of file
#endif
......@@ -69,15 +69,15 @@ namespace INMOST
INMOST_DATA_ENUM_TYPE header[9] =
{
GetDimensions(),
NumberOfNodes(),
NumberOfEdges(),
NumberOfFaces(),
NumberOfCells(),
NumberOfSets(),
static_cast<INMOST_DATA_ENUM_TYPE>(GetDimensions()),
static_cast<INMOST_DATA_ENUM_TYPE>(NumberOfNodes()),
static_cast<INMOST_DATA_ENUM_TYPE>(NumberOfEdges()),
static_cast<INMOST_DATA_ENUM_TYPE>(NumberOfFaces()),
static_cast<INMOST_DATA_ENUM_TYPE>(NumberOfCells()),
static_cast<INMOST_DATA_ENUM_TYPE>(NumberOfSets()),
NumberOfTags()-5, //add counter to skip unwanted tags here SKIPHERE, search by SKIPHERE for additional instructions
m_state,
GetProcessorRank()
static_cast<INMOST_DATA_ENUM_TYPE>(GetProcessorRank())
},k;
for(k = 0; k < 9; k++) uconv.write_iValue(out,header[k]);
out.write(reinterpret_cast<char *>(remember),sizeof(remember));
......@@ -1444,4 +1444,4 @@ namespace INMOST
}
}
#endif
\ No newline at end of file
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment