From b1d7f22fc6ab2bd3c1064b19621b9f889efb203f Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 19 Apr 2016 12:10:26 -0800 Subject: [PATCH] Fixed asan test for memmapped file system Change: 120261367 --- tensorflow/core/util/memmapped_file_system.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/util/memmapped_file_system.cc b/tensorflow/core/util/memmapped_file_system.cc index b0537c8038a..ca4a934004d 100644 --- a/tensorflow/core/util/memmapped_file_system.cc +++ b/tensorflow/core/util/memmapped_file_system.cc @@ -25,7 +25,7 @@ namespace { uint64 DecodeUint64LittleEndian(const uint8* buffer) { uint64 result = 0; for (int i = 0; i < static_cast(sizeof(uint64)); ++i) { - result |= buffer[i] << (8 * i); + result |= static_cast(buffer[i]) << (8 * i); } return result; }