mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
||||
|
||||
/// Allocate - Allocate and return at least the specified number of bytes.
|
||||
///
|
||||
void *Allocate(unsigned AllocSize, unsigned Alignment, MemRegion **RegPtr) {
|
||||
void *Allocate(size_t AllocSize, size_t Alignment, MemRegion **RegPtr) {
|
||||
|
||||
char* Result = (char*) (((uintptr_t) (NextPtr+Alignment-1))
|
||||
& ~((uintptr_t) Alignment-1));
|
||||
@@ -113,7 +113,7 @@ void BumpPtrAllocator::Reset() {
|
||||
TheMemory = MRP;
|
||||
}
|
||||
|
||||
void *BumpPtrAllocator::Allocate(unsigned Size, unsigned Align) {
|
||||
void *BumpPtrAllocator::Allocate(size_t Size, size_t Align) {
|
||||
MemRegion *MRP = (MemRegion*)TheMemory;
|
||||
void *Ptr = MRP->Allocate(Size, Align, &MRP);
|
||||
TheMemory = MRP;
|
||||
|
||||
Reference in New Issue
Block a user