mirror of
https://github.com/serge1/ELFIO.git
synced 2025-01-14 03:41:22 +00:00
Ticket #9: Segment offset written in wrong endianess.
This commit is contained in:
parent
c219208716
commit
ec5ca1fa17
@ -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 ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user