Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Unified Diff: base/sys_info_openbsd.cc

Issue 1000933002: sys_info_linux: positive return value of MaxSharedMemorySize for 32-bit build on 64-bit host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed useless file. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/sys_info_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_openbsd.cc
diff --git a/base/sys_info_openbsd.cc b/base/sys_info_openbsd.cc
index edbb2c9d86c305cdb605051d6165770e8ea3a28c..595291b0e018720d27a79cc629b5146008791d9e 100644
--- a/base/sys_info_openbsd.cc
+++ b/base/sys_info_openbsd.cc
@@ -49,7 +49,7 @@ int64 SysInfo::AmountOfAvailablePhysicalMemory() {
}
// static
-size_t SysInfo::MaxSharedMemorySize() {
+uint64 SysInfo::MaxSharedMemorySize() {
int mib[] = { CTL_KERN, KERN_SHMINFO, KERN_SHMINFO_SHMMAX };
size_t limit;
size_t size = sizeof(limit);
@@ -57,7 +57,7 @@ size_t SysInfo::MaxSharedMemorySize() {
NOTREACHED();
return 0;
}
- return limit;
+ return static_cast<uint64>(limit);
}
// static
« no previous file with comments | « base/sys_info_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698