diff options
author | Christoph Cullmann <cullmann@kde.org> | 2020-05-06 23:08:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 17:08:21 -0400 |
commit | b115744656b16bd35014f22293b87f2edcffde74 (patch) | |
tree | 30c6ef9e8a23c6a6e403610a51053cdb33a8a0b1 | |
parent | d85783fd0b1bb32b3d3e04d18367cec8d96c9e9a (diff) |
fix MSVC warning 4245: conversion signed => unsigned during initialization (#678)
-rw-r--r-- | absl/container/internal/container_memory.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/container/internal/container_memory.h b/absl/container/internal/container_memory.h index 3487ac18..536ea398 100644 --- a/absl/container/internal/container_memory.h +++ b/absl/container/internal/container_memory.h @@ -250,8 +250,8 @@ namespace memory_internal { // type, which is non-portable. template <class Pair, class = std::true_type> struct OffsetOf { - static constexpr size_t kFirst = -1; - static constexpr size_t kSecond = -1; + static constexpr size_t kFirst = static_cast<size_t>(-1); + static constexpr size_t kSecond = static_cast<size_t>(-1); }; template <class Pair> |