Skip to content

Commit

Permalink
Cast to long long before shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-guyot-infomaniak committed Dec 12, 2024
1 parent a3b7b79 commit a60a562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcommonserver/io/iohelper_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ time_t FileTimeToUnixTime(LARGE_INTEGER filetime, DWORD *remainder) {
uint64_t computeNodeId(const PFILE_ID_FULL_DIR_INFORMATION pFileInfo) {
// We keep `long long` type cast for legacy reason.
auto longLongId =
static_cast<long long>(pFileInfo->FileId.HighPart << 32) + static_cast<long long>(pFileInfo->FileId.LowPart);
(static_cast<long long>(pFileInfo->FileId.HighPart) << 32) + static_cast<long long>(pFileInfo->FileId.LowPart);

return static_cast<uint64_t>(longLongId);
}
Expand Down

0 comments on commit a60a562

Please sign in to comment.