diff options
author | Abseil Team <absl-team@google.com> | 2022-01-04 18:04:19 -0800 |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2022-01-05 19:23:21 -0500 |
commit | 628a2825f8dc0219964886e7cc3f7f519e3bd950 (patch) | |
tree | eacb9c0ec6080a5647ed477a3a0749b49649efd9 /absl/types | |
parent | c498947f8cf6dd4eb7bf4d589ca0f3816fd77d36 (diff) |
Export of internal Abseil changes
--
04e8fdf6a37d31f9364ca0f70bf663ee972481c6 by Abseil Team <absl-team@google.com>:
Another implicit sign conversion found and removed.
PiperOrigin-RevId: 419718762
--
dbb6bca7d3cfa9ce79e70d0ed3d0354a4e3a0983 by Abseil Team <absl-team@google.com>:
Fix sign conversions so that absl/status/status.h can compile with -Wconversion -Wsign-compare
PiperOrigin-RevId: 419658075
GitOrigin-RevId: 04e8fdf6a37d31f9364ca0f70bf663ee972481c6
Change-Id: I18441488cc84f573c2818ee241c387e1953d5105
Diffstat (limited to 'absl/types')
-rw-r--r-- | absl/types/span.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/types/span.h b/absl/types/span.h index 6272bb7a..fdfbd77c 100644 --- a/absl/types/span.h +++ b/absl/types/span.h @@ -664,7 +664,8 @@ constexpr Span<T> MakeSpan(T* ptr, size_t size) noexcept { template <int&... ExplicitArgumentBarrier, typename T> Span<T> MakeSpan(T* begin, T* end) noexcept { - return ABSL_HARDENING_ASSERT(begin <= end), Span<T>(begin, end - begin); + return ABSL_HARDENING_ASSERT(begin <= end), + Span<T>(begin, static_cast<size_t>(end - begin)); } template <int&... ExplicitArgumentBarrier, typename C> |