Fix endianness conversion for array acceessor

This commit is contained in:
Serge Lamikhov-Center 2021-01-13 11:18:23 +02:00
parent 8037e5a42a
commit eaae4e1e13

View File

@ -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 ) );
}