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

This commit is contained in:
Christoph Cullmann 2020-05-06 23:08:21 +02:00 committed by GitHub
parent d85783fd0b
commit b115744656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>