aboutsummaryrefslogtreecommitdiff
path: root/www/qt6-webengine/files/patch-src_3rdparty_chromium_third__party_perfetto_src_trace__processor_db_storage_numeric__storage.cc
blob: 565f390bca05f6ac639be0b5d462c3ddae9aedab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- src/3rdparty/chromium/third_party/perfetto/src/trace_processor/db/storage/numeric_storage.cc.orig	2023-10-14 11:56:57 UTC
+++ src/3rdparty/chromium/third_party/perfetto/src/trace_processor/db/storage/numeric_storage.cc
@@ -245,8 +245,13 @@ BitVector NumericStorage::LinearSearch(FilterOp op,
   } else if (const auto* i32 = std::get_if<int32_t>(&*val)) {
     auto* start = static_cast<const int32_t*>(data_) + range.start;
     TypedLinearSearch(*i32, start, op, builder);
+#if (defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__i386__)
+  } else if (const auto* db = std::get_if<long double>(&*val)) {
+    auto* start = static_cast<const long double*>(data_) + range.start;
+#else
   } else if (const auto* db = std::get_if<double>(&*val)) {
     auto* start = static_cast<const double*>(data_) + range.start;
+#endif
     TypedLinearSearch(*db, start, op, builder);
   } else {
     PERFETTO_DFATAL("Invalid");