Ticket #9: Segment offset written in wrong endianess.

This commit is contained in:
Serge Lamikhov-Center 2013-04-20 01:27:29 +03:00
parent c219208716
commit ec5ca1fa17

View File

@ -164,6 +164,7 @@ class segment_impl : public segment
std::streampos data_offset )
{
ph.p_offset = data_offset;
ph.p_offset = (*convertor)(ph.p_offset);
f.seekp( header_offset );
f.write( reinterpret_cast<const char*>( &ph ), sizeof( ph ) );
}