mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 04:22:57 +02:00
Explicitly cast std::min's arguments to avoid type mismatches.
llvm-svn: 98851
This commit is contained in:
parent
82775edea3
commit
2fa523cbd7
@ -192,8 +192,8 @@ inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
|
||||
} x;
|
||||
#endif
|
||||
};
|
||||
return Allocator.Allocate(Size, std::min(llvm::NextPowerOf2(Size),
|
||||
offsetof(S, x)));
|
||||
return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size),
|
||||
(size_t)offsetof(S, x)));
|
||||
}
|
||||
|
||||
#endif // LLVM_SUPPORT_ALLOCATOR_H
|
||||
|
Loading…
Reference in New Issue
Block a user