fix MSVC warning 4245: conversion signed => unsigned during initialization (#678)
This commit is contained in:
parent
d85783fd0b
commit
b115744656
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue