20 lines
946 B
Diff
20 lines
946 B
Diff
commit 4d95445fbfcad6af809bb8c93db43e2af34aefbb
|
|
Author: q66 <daniel@octaforge.org>
|
|
Date: Mon Jan 6 00:31:03 2020 +0100
|
|
|
|
Fix build on big endian
|
|
|
|
diff --git src/tools/perfparser/app/perfunwind.cpp src/tools/perfparser/app/perfunwind.cpp
|
|
index 904fcbf..7802310 100644
|
|
--- src/tools/perfparser/app/perfunwind.cpp
|
|
+++ src/tools/perfparser/app/perfunwind.cpp
|
|
@@ -127,7 +127,7 @@ PerfUnwind::PerfUnwind(QIODevice *output, const QString &systemRoot, const QStri
|
|
// Write minimal header, consisting of magic and data stream version we're going to use.
|
|
const char magic[] = "QPERFSTREAM";
|
|
output->write(magic, sizeof(magic));
|
|
- qint32 dataStreamVersion = qToLittleEndian(QDataStream::Qt_DefaultCompiledVersion);
|
|
+ qint32 dataStreamVersion = qToLittleEndian<qint32>(QDataStream::Qt_DefaultCompiledVersion);
|
|
output->write(reinterpret_cast<const char *>(&dataStreamVersion), sizeof(qint32));
|
|
}
|
|
}
|