Commit 00c3bd0e authored by jschuh's avatar jschuh Committed by Commit bot

Switch IsValueInRangeForNumericType to IsValid()

TBR=tsepez

Review-Url: https://codereview.chromium.org/2614643002
Cr-Commit-Position: refs/heads/master@{#441348}
parent a572b1d7
......@@ -51,8 +51,7 @@ namespace base {
// for the destination type.
template <typename Dst, typename Src>
constexpr bool IsValueInRangeForNumericType(Src value) {
return internal::DstRangeRelationToSrcRange<Dst>(value) ==
internal::RANGE_VALID;
return internal::DstRangeRelationToSrcRange<Dst>(value).IsValid();
}
// Forces a crash, like a CHECK(false). Used for numeric boundary errors.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment