diff options
author | Andres Salomon <dilinger@queued.net> | 2020-02-07 00:04:36 -0500 |
---|---|---|
committer | Andres Salomon <dilinger@queued.net> | 2020-02-07 00:04:36 -0500 |
commit | 1af2dffb70862a59801a73dacedc695bb062977a (patch) | |
tree | ec2e7a51a87ca1be32ea0d4479d82af4f4d21ad1 /lib/csapi/report_content.cpp | |
parent | e3a5b3a5e5253fc5ce67574b01e8d25ec14e4d25 (diff) | |
download | libquotient-1af2dffb70862a59801a73dacedc695bb062977a.tar.gz libquotient-1af2dffb70862a59801a73dacedc695bb062977a.zip |
Fix build on big-endian systems
On little-endian systems, this call to qToLittleEndian(hash) disappears
completely.
On big-endian systems, it turns into qbswap(hash), and causes a build
error. qbswap() isn't defined for QByteArrays, because QByteArray
isn't an array containing multi-byte elements. Since each element
is a single byte, machine endianness isn't a factor. (If we really
wanted to swap the bytes, we'd need to reverse every 4 bytes of
the array.)
This just drops the call to QToLittleEndian completely. The lines
after it converts part of the hash to a QDataStream, which DOES have
to worry about endianness, but that code is also specifically calling
QDataStream::setByteOrder to specify little-endian.
Diffstat (limited to 'lib/csapi/report_content.cpp')
0 files changed, 0 insertions, 0 deletions