mirror of
https://github.com/QuasarApp/ELFIO.git
synced 2025-05-04 15:39:32 +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 )
|
std::streampos data_offset )
|
||||||
{
|
{
|
||||||
ph.p_offset = data_offset;
|
ph.p_offset = data_offset;
|
||||||
|
ph.p_offset = (*convertor)(ph.p_offset);
|
||||||
f.seekp( header_offset );
|
f.seekp( header_offset );
|
||||||
f.write( reinterpret_cast<const char*>( &ph ), sizeof( ph ) );
|
f.write( reinterpret_cast<const char*>( &ph ), sizeof( ph ) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user