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

Unified Diff: base/sys_info_freebsd.cc

Issue 1498003003: Remove kint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: INT64_MAX Created 5 years 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_chromeos.cc ('k') | base/sys_info_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_freebsd.cc
diff --git a/base/sys_info_freebsd.cc b/base/sys_info_freebsd.cc
index 515b59d6e9845d8e20f35ce9217dd597fe7b0c97..bc175ed64280725b688de3436af848cbb29c67d1 100644
--- a/base/sys_info_freebsd.cc
+++ b/base/sys_info_freebsd.cc
@@ -10,7 +10,7 @@
namespace base {
-int64 SysInfo::AmountOfPhysicalMemory() {
+int64_t SysInfo::AmountOfPhysicalMemory() {
int pages, page_size;
size_t size = sizeof(pages);
sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, NULL, 0);
@@ -19,18 +19,18 @@ int64 SysInfo::AmountOfPhysicalMemory() {
NOTREACHED();
return 0;
}
- return static_cast<int64>(pages) * page_size;
+ return static_cast<int64_t>(pages) * page_size;
}
// static
-uint64 SysInfo::MaxSharedMemorySize() {
+uint64_t SysInfo::MaxSharedMemorySize() {
size_t limit;
size_t size = sizeof(limit);
if (sysctlbyname("kern.ipc.shmmax", &limit, &size, NULL, 0) < 0) {
NOTREACHED();
return 0;
}
- return static_cast<uint64>(limit);
+ return static_cast<uint64_t>(limit);
}
} // namespace base
« no previous file with comments | « base/sys_info_chromeos.cc ('k') | base/sys_info_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698