ports/www/qt5-webengine/files/patch-src_3rdparty_chromium_base_pickle.cc
Piotr Kubaj 16d89059b0 www/qt5-webengine: fix build on powerpc64 (elfv2 only)
Tested with otter-browser on my Talos.

Approved by:	tcberner (mentor, maintainer, earlier version)
Differential Revision:	https://reviews.freebsd.org/D22184
2019-11-23 17:30:05 +00:00

16 lines
473 B
C++

--- src/3rdparty/chromium/base/pickle.cc.orig 2019-05-23 12:39:34 UTC
+++ src/3rdparty/chromium/base/pickle.cc
@@ -82,7 +82,12 @@ inline const char* PickleIterator::GetReadPointerAndAd
}
bool PickleIterator::ReadBool(bool* result) {
- return ReadBuiltinType(result);
+ int int_result;
+ if (ReadBuiltinType(&int_result)) {
+ *result = static_cast<bool>(int_result);
+ return true;
+ } else
+ return false;
}
bool PickleIterator::ReadInt(int* result) {