fix MSVC warning 4245: conversion signed => unsigned during initialization (#678)

pull/682/head
Christoph Cullmann 5 years ago committed by GitHub
parent d85783fd0b
commit b115744656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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>

Loading…
Cancel
Save