From 07a5c7c4b5525f6e4ab73ad53db9b5a79e9717d8 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 20 Dec 2020 13:25:35 +0100 Subject: Remove some build warnings Fix didn't have the expected effect --- qtools/qdatastream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtools/qdatastream.cpp b/qtools/qdatastream.cpp index c169d9f..d539daf 100644 --- a/qtools/qdatastream.cpp +++ b/qtools/qdatastream.cpp @@ -799,7 +799,7 @@ QDataStream &QDataStream::operator<<( Q_INT64 i ) } else { // swap bytes uchar *p = (uchar *)(&i); char b[sizeof(Q_INT64)]; - if ( sizeof(b) == 8 ) { + if ( sizeof(Q_INT64) == 8 ) { b[7] = *p++; b[6] = *p++; b[5] = *p++; -- cgit v0.12