commit | 0b0704c7c47ee60ff0a2b49f66df1067e939c948 | [log] [tgz] |
---|---|---|
author | Samir Jindel <sjindel@google.com> | Wed Jan 09 17:44:34 2019 +0000 |
committer | Samir Jindel <sjindel@google.com> | Wed Jan 09 17:44:34 2019 +0000 |
tree | 938545a0e220e9378ad3abcd8c82fcf544b98236 | |
parent | 36b5fe0c7a685d86ad6813adf8d808a49ed3e1c9 [diff] |
[vm] Use std::abs instead of regular abs(). This fixes the 3H build. Change-Id: Iea5256cfb40b58c81967e676414c52e004a08847 Reviewed-on: https://dart-review.googlesource.com/c/88842 Reviewed-by: Samir Jindel <sjindel@google.com> Commit-Queue: Samir Jindel <sjindel@google.com> Auto-Submit: Samir Jindel <sjindel@google.com>
diff --git a/runtime/vm/compiler/aot/aot_call_specializer.cc b/runtime/vm/compiler/aot/aot_call_specializer.cc index 6e363f4..bdc7e19 100644 --- a/runtime/vm/compiler/aot/aot_call_specializer.cc +++ b/runtime/vm/compiler/aot/aot_call_specializer.cc
@@ -427,7 +427,7 @@ const Object& rhs = right_value->BoundConstant(); int64_t modulus = - abs(rhs.IsSmi() ? Smi::Cast(rhs).Value() : Mint::Cast(rhs).value()); + std::abs(rhs.IsSmi() ? Smi::Cast(rhs).Value() : Mint::Cast(rhs).value()); if (!Utils::IsPowerOfTwo(modulus) || !Smi::IsValid(modulus - 1)) { return nullptr; }