mirror of
https://github.com/serge1/ELFIO.git
synced 2025-01-13 18:52:34 +00:00
Fix endianness conversion for array acceessor
This commit is contained in:
parent
8037e5a42a
commit
eaae4e1e13
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2001-2020 by Serge Lamikhov-Center
|
||||
Copyright (C) 2001-2021 by Serge Lamikhov-Center
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
@ -91,7 +91,7 @@ template <class S> class array_section_accessor_template
|
||||
{
|
||||
const endianess_convertor& convertor = elf_file.get_convertor();
|
||||
|
||||
T temp = (T)address;
|
||||
T temp = convertor( (T)address );
|
||||
array_section->append_data( reinterpret_cast<char*>( &temp ),
|
||||
sizeof( temp ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user