Skip to content

Commit

Permalink
Fix warning on using 32bit types
Browse files Browse the repository at this point in the history
This is down to the difference between unsigned long on Windows (32bit) and unsigned long on Linux (64bit)
  • Loading branch information
rgal committed Jan 28, 2021
1 parent c16caab commit 5dfbb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/scudo/standalone/common.h
Expand Up @@ -91,7 +91,7 @@ inline uptr roundUpToPowerOfTwo(uptr Size) {
const uptr Up = getMostSignificantSetBitIndex(Size);
DCHECK_LT(Size, (1UL << (Up + 1)));
DCHECK_GT(Size, (1UL << Up));
return 1UL << (Up + 1);
return 1ULL << (Up + 1);
}

inline uptr getLeastSignificantSetBitIndex(uptr X) {
Expand Down

0 comments on commit 5dfbb27

Please sign in to comment.