fix 32/64-bit bug on windows (analyzer and synthesizer reads with unsigned int -> 32bit, writer writes size_t -> possible 64-bit)

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1178 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2014-10-15 09:21:54 +00:00
parent 725dde5532
commit a505d427d2

View File

@@ -130,9 +130,9 @@ write( const std::string& _ofname )
// write header // write header
out << "ProgMesh"; out << "ProgMesh";
IO::store( out, n_base_vertices, swap ); IO::store( out, static_cast<unsigned int>(n_base_vertices), swap );//store in 32-bit
IO::store( out, n_base_faces , swap ); IO::store( out, static_cast<unsigned int>(n_base_faces) , swap );
IO::store( out, pmi_.size() , swap ); IO::store( out, static_cast<unsigned int>(pmi_.size()) , swap );
Vec3f p; Vec3f p;