summarylogtreecommitdiffstats
path: root/cros-search-service-Include-cmath-for-std-pow.patch
diff options
context:
space:
mode:
authorDaniel Playfair Cal2020-02-09 17:52:36 +1100
committerDaniel Playfair Cal2020-02-11 23:48:18 +1100
commit87bed1bf632b6f78c76aa4b95b32fefdea713503 (patch)
tree8879db8e95927f10a733bede3165a9130b1cb623 /cros-search-service-Include-cmath-for-std-pow.patch
parent53d0cef916c867c66e7391ea89b57da33e5cb018 (diff)
downloadaur-87bed1bf632b6f78c76aa4b95b32fefdea713503.tar.gz
80.0.3987.87-1
Diffstat (limited to 'cros-search-service-Include-cmath-for-std-pow.patch')
-rw-r--r--cros-search-service-Include-cmath-for-std-pow.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/cros-search-service-Include-cmath-for-std-pow.patch b/cros-search-service-Include-cmath-for-std-pow.patch
new file mode 100644
index 000000000000..410b968d0fe6
--- /dev/null
+++ b/cros-search-service-Include-cmath-for-std-pow.patch
@@ -0,0 +1,35 @@
+From 8273f4d3130e06fd8b6bef87b07c936304b971d9 Mon Sep 17 00:00:00 2001
+From: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
+Date: Tue, 10 Dec 2019 20:59:57 +0000
+Subject: [PATCH] [cros search service]: Include <cmath> for std::pow()
+
+IWYU. Follow up to commit 2b2ea3c09b ("[cros search service] Move shared
+string matching functions to //chrome"), which broke the libstdc++ build:
+
+ ../../chrome/common/string_matching/fuzzy_tokenized_string_match.cc:199:14: error: no member named 'pow' in namespace 'std'
+ std::pow(partial_match_penalty_rate, long_start - current - 1);
+ ~~~~~^
+
+Bug: 957519
+Change-Id: I66f61cb4f93cfa0bfa3d1b00ba391ddd8f31a7fb
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1960310
+Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
+Reviewed-by: Jia Meng <jiameng@chromium.org>
+Commit-Queue: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
+Cr-Commit-Position: refs/heads/master@{#723499}
+---
+ chrome/common/string_matching/fuzzy_tokenized_string_match.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/chrome/common/string_matching/fuzzy_tokenized_string_match.cc b/chrome/common/string_matching/fuzzy_tokenized_string_match.cc
+index 8351fa701e4..884ef638c61 100644
+--- a/chrome/common/string_matching/fuzzy_tokenized_string_match.cc
++++ b/chrome/common/string_matching/fuzzy_tokenized_string_match.cc
+@@ -5,6 +5,7 @@
+ #include "chrome/common/string_matching/fuzzy_tokenized_string_match.h"
+
+ #include <algorithm>
++#include <cmath>
+ #include <iterator>
+
+ #include "base/i18n/case_conversion.h"