about summary refs log tree commit diff
path: root/absl/container/internal/container_memory.h
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2020-05-06T21·08+0200
committerGitHub <noreply@github.com>2020-05-06T21·08-0400
commitb115744656b16bd35014f22293b87f2edcffde74 (patch)
tree30c6ef9e8a23c6a6e403610a51053cdb33a8a0b1 /absl/container/internal/container_memory.h
parentd85783fd0b1bb32b3d3e04d18367cec8d96c9e9a (diff)
fix MSVC warning 4245: conversion signed => unsigned during initialization (#678)
Diffstat (limited to 'absl/container/internal/container_memory.h')
-rw-r--r--absl/container/internal/container_memory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/container/internal/container_memory.h b/absl/container/internal/container_memory.h
index 3487ac18998f..536ea398eb10 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>