summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Memory.inc
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-05 18:30:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-05 18:30:58 +0000
commit86cb31862f1ce14c3e6774ec9d84e51e47a43587 (patch)
tree0f53e56ae15c3d8f8e169b55013f5c821e32a18d /llvm/lib/System/Unix/Memory.inc
parent9c0c60d0801847eead729ccab3791fb530faa224 (diff)
downloadbcm5719-llvm-86cb31862f1ce14c3e6774ec9d84e51e47a43587.tar.gz
bcm5719-llvm-86cb31862f1ce14c3e6774ec9d84e51e47a43587.zip
Fix more -Wshorten-64-to-32 warnings.
llvm-svn: 50659
Diffstat (limited to 'llvm/lib/System/Unix/Memory.inc')
-rw-r--r--llvm/lib/System/Unix/Memory.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Memory.inc b/llvm/lib/System/Unix/Memory.inc
index afa8f03117f..0b74f74f7b6 100644
--- a/llvm/lib/System/Unix/Memory.inc
+++ b/llvm/lib/System/Unix/Memory.inc
@@ -28,7 +28,7 @@ llvm::sys::Memory::AllocateRWX(unsigned NumBytes, const MemoryBlock* NearBlock,
std::string *ErrMsg) {
if (NumBytes == 0) return MemoryBlock();
- long pageSize = Process::GetPageSize();
+ unsigned pageSize = Process::GetPageSize();
unsigned NumPages = (NumBytes+pageSize-1)/pageSize;
int fd = -1;
OpenPOWER on IntegriCloud