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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user