Fix a warning

This commit is contained in:
vitaut 2015-05-07 07:19:28 -07:00
parent 673a4525f6
commit 4888000f32

View File

@ -151,8 +151,8 @@ fmt::LongLong fmt::File::size() const {
if (error != NO_ERROR)
throw WindowsError(GetLastError(), "cannot get file size");
}
fmt::ULongLong size = size_upper;
return (size << sizeof(DWORD) * CHAR_BIT) | size_lower;
fmt::ULongLong long_size = size_upper;
return (long_size << sizeof(DWORD) * CHAR_BIT) | size_lower;
#else
typedef struct stat Stat;
Stat file_stat = Stat();