aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-02-07 12:09:56 +0100
committerGitHub <noreply@github.com>2020-02-07 12:09:56 +0100
commit9bcf0cbc3d690663d37d1737173ab5088fed152f (patch)
treeec2e7a51a87ca1be32ea0d4479d82af4f4d21ad1 /lib
parente3a5b3a5e5253fc5ce67574b01e8d25ec14e4d25 (diff)
parent1af2dffb70862a59801a73dacedc695bb062977a (diff)
downloadlibquotient-9bcf0cbc3d690663d37d1737173ab5088fed152f.tar.gz
libquotient-9bcf0cbc3d690663d37d1737173ab5088fed152f.zip
Merge pull request #375 from dilinger/big-endian
Fix build on big-endian systems
Diffstat (limited to 'lib')
-rw-r--r--lib/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.cpp b/lib/util.cpp
index 9f4ac85f..4cbebfe2 100644
--- a/lib/util.cpp
+++ b/lib/util.cpp
@@ -104,7 +104,7 @@ qreal Quotient::stringToHueF(const QString& s)
Q_ASSERT(!s.isEmpty());
QByteArray hash = QCryptographicHash::hash(s.toUtf8(),
QCryptographicHash::Sha1);
- QDataStream dataStream(qToLittleEndian(hash).left(2));
+ QDataStream dataStream(hash.left(2));
dataStream.setByteOrder(QDataStream::LittleEndian);
quint16 hashValue;
dataStream >> hashValue;