summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Memory.inc
diff options
context:
space:
mode:
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