| Index: base/safe_numerics.h
|
| diff --git a/base/safe_numerics.h b/base/safe_numerics.h
|
| index 3d47cf24ed5eb9553ae4edae285699ee36a0e923..ce5c72fcc770d0b75483286ae2f71a747ca844cb 100644
|
| --- a/base/safe_numerics.h
|
| +++ b/base/safe_numerics.h
|
| @@ -120,10 +120,10 @@ inline bool IsValidNumericCast(Source source) {
|
|
|
| } // namespace internal
|
|
|
| -// numeric_cast<> is analogous to static_cast<> for numeric types, except that
|
| -// it CHECKs that the specified numeric conversion will not overflow or
|
| -// underflow. Floating point arguments are not currently allowed (this is
|
| -// COMPILE_ASSERTd), though this could be supported if necessary.
|
| +// checked_numeric_cast<> is analogous to static_cast<> for numeric types,
|
| +// except that it CHECKs that the specified numeric conversion will not
|
| +// overflow or underflow. Floating point arguments are not currently allowed
|
| +// (this is COMPILE_ASSERTd), though this could be supported if necessary.
|
| template <class Dest, class Source>
|
| inline Dest checked_numeric_cast(Source source) {
|
| CHECK(internal::IsValidNumericCast<Dest>(source));
|
|
|