Fix: OM Reader used different types on 32/64-bit systems. (Thanks to Martin Bayer for the patch)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@620 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -521,7 +521,7 @@ size_t _OMReader_::restore_binary_custom_data(std::istream& _is, BaseProperty* _
|
||||
Chunk::esize_t block_size;
|
||||
Chunk::PropertyName custom_prop;
|
||||
|
||||
bytes += binary<Chunk::esize_t>::restore(_is, block_size, _swap);
|
||||
bytes += restore(_is, block_size, OMFormat::Chunk::Integer_32, _swap);
|
||||
|
||||
if (_bp) {
|
||||
size_t n_bytes = _bp->size_of(_n_elem);
|
||||
|
||||
@@ -474,7 +474,7 @@ size_t _OMWriter_::store_binary_custom_chunk(std::ostream& _os,
|
||||
bytes += store( _os, OMFormat::Chunk::PropertyName(_bp.name()), _swap );
|
||||
|
||||
// 3. block size
|
||||
bytes += store( _os, _bp.size_of(), _swap );
|
||||
bytes += store( _os, _bp.size_of(), OMFormat::Chunk::Integer_32, _swap );
|
||||
omlog() << " n_bytes = " << _bp.size_of() << std::endl;
|
||||
|
||||
// 4. data
|
||||
|
||||
Reference in New Issue
Block a user