From b115744656b16bd35014f22293b87f2edcffde74 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Wed, 6 May 2020 23:08:21 +0200 Subject: fix MSVC warning 4245: conversion signed => unsigned during initialization (#678) --- absl/container/internal/container_memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'absl/container/internal') 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 struct OffsetOf { - static constexpr size_t kFirst = -1; - static constexpr size_t kSecond = -1; + static constexpr size_t kFirst = static_cast(-1); + static constexpr size_t kSecond = static_cast(-1); }; template -- cgit 1.4.1