Commit 750da75a authored by Sean McBride's avatar Sean McBride Committed by Brad King
Browse files

Fixed 64 to 32 bit truncation warning by casting

parent 30de8e17
...@@ -4491,7 +4491,8 @@ bool SystemInformationImplementation::ParseSysCtl() ...@@ -4491,7 +4491,8 @@ bool SystemInformationImplementation::ParseSysCtl()
# ifdef VM_SWAPUSAGE # ifdef VM_SWAPUSAGE
// Virtual memory. // Virtual memory.
int mib[2] = { CTL_VM, VM_SWAPUSAGE }; int mib[2] = { CTL_VM, VM_SWAPUSAGE };
size_t miblen = sizeof(mib) / sizeof(mib[0]); unsigned int miblen =
static_cast<unsigned int>(sizeof(mib) / sizeof(mib[0]));
struct xsw_usage swap; struct xsw_usage swap;
len = sizeof(swap); len = sizeof(swap);
err = sysctl(mib, miblen, &swap, &len, KWSYS_NULLPTR, 0); err = sysctl(mib, miblen, &swap, &len, KWSYS_NULLPTR, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment