Fixed asan test for memmapped file system

Change: 120261367
This commit is contained in:
A. Unique TensorFlower 2016-04-19 12:10:26 -08:00 committed by TensorFlower Gardener
parent 27b1f37223
commit b1d7f22fc6

View File

@ -25,7 +25,7 @@ namespace {
uint64 DecodeUint64LittleEndian(const uint8* buffer) {
uint64 result = 0;
for (int i = 0; i < static_cast<int>(sizeof(uint64)); ++i) {
result |= buffer[i] << (8 * i);
result |= static_cast<uint64>(buffer[i]) << (8 * i);
}
return result;
}