Bug 1399309 - Make nsTSubstring.cpp include MathAlgorithms.h. r=froydnj
authorChris Pearce <cpearce@mozilla.com>
Wed, 13 Sep 2017 13:50:05 +1200
changeset 429977 819875ef9f032c14c574a0abe4a48e94906dca58
parent 429976 fa8562b32dae3315975ec8387fd70861290121e4
child 429978 b393da8b7c59312ab1f5c0978a84272655ecb50a
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1399309
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1399309 - Make nsTSubstring.cpp include MathAlgorithms.h. r=froydnj nsTSubstring.cpp is calling RoundUpPow2 which is defined in MathAlgorithms.h. Without this, we get a build failure in non-unified builds. MozReview-Commit-ID: Dz7VIZk4dLw
xpcom/string/nsTSubstring.cpp
--- a/xpcom/string/nsTSubstring.cpp
+++ b/xpcom/string/nsTSubstring.cpp
@@ -4,16 +4,17 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsASCIIMask.h"
 #include "mozilla/CheckedInt.h"
 #include "mozilla/double-conversion.h"
 #include "mozilla/MemoryReporting.h"
 #include "mozilla/Printf.h"
+#include "mozilla/MathAlgorithms.h"
 
 using double_conversion::DoubleToStringConverter;
 
 template <typename T>
 const typename nsTSubstring<T>::size_type nsTSubstring<T>::kMaxCapacity =
     (nsTSubstring<T>::size_type(-1) /
         2 - sizeof(nsStringBuffer)) /
     sizeof(nsTSubstring<T>::char_type) - 2;