Commit a505d427 authored by Matthias Möller's avatar Matthias Möller

fix 32/64-bit bug on windows (analyzer and synthesizer reads with unsigned int...

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