commit | 86cb31862f1ce14c3e6774ec9d84e51e47a43587 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Mon May 05 18:30:58 2008 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Mon May 05 18:30:58 2008 +0000 |
tree | 0f53e56ae15c3d8f8e169b55013f5c821e32a18d | |
parent | 9c0c60d0801847eead729ccab3791fb530faa224 [diff] [blame] |
Fix more -Wshorten-64-to-32 warnings. llvm-svn: 50659
diff --git a/llvm/lib/System/Unix/Memory.inc b/llvm/lib/System/Unix/Memory.inc index afa8f03..0b74f74 100644 --- a/llvm/lib/System/Unix/Memory.inc +++ b/llvm/lib/System/Unix/Memory.inc
@@ -28,7 +28,7 @@ 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;