mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Fix MSVC warning.
This patch is to fix the following warning when compiled with MSVC 64 bit. warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) llvm-svn: 205245
This commit is contained in:
parent
a3d1869037
commit
c1741d4299
@ -255,7 +255,7 @@ private:
|
||||
// size threshold. That will be fixed in a subsequent commit to make the
|
||||
// growth even more predictable.
|
||||
size_t AllocatedSlabSize =
|
||||
SlabSize * (1 << std::min<size_t>(30, NumSlabs / 128));
|
||||
SlabSize * ((size_t)1 << std::min<size_t>(30, NumSlabs / 128));
|
||||
|
||||
MemSlab *NewSlab = Allocator.Allocate(AllocatedSlabSize);
|
||||
NewSlab->NextPtr = CurSlab;
|
||||
|
Loading…
Reference in New Issue
Block a user