Index: util/numeric/in_range_cast.h |
diff --git a/util/numeric/in_range_cast.h b/util/numeric/in_range_cast.h |
index 3a7bdddf827f763ba1a3652374edcaaab5103106..3dba10afa16016bb7149cd1fa7b4ae14c72cfca2 100644 |
--- a/util/numeric/in_range_cast.h |
+++ b/util/numeric/in_range_cast.h |
@@ -32,11 +32,11 @@ namespace crashpad { |
template <typename Destination, typename Source> |
Destination InRangeCast(Source source, Destination default_value) { |
if (base::IsValueInRangeForNumericType<Destination>(source)) { |
- return source; |
+ return static_cast<Destination>(source); |
} |
LOG(WARNING) << "value " << source << " out of range"; |
- return default_value; |
+ return static_cast<Destination>(default_value); |
} |
} // namespace crashpad |