Skip to content

Commit

Permalink
utils: Add a missing std qualifier before size_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rvac committed Jan 28, 2019
1 parent 6c2bb4d commit edbeb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ bool limitSystemMemoryOnWindows(std::size_t limit) {
std::size_t getTotalSystemMemoryOnMacOS() {
int what[] = { CTL_HW, HW_MEMSIZE };
std::size_t value = 0;
size_t length = sizeof(value);
std::size_t length = sizeof(value);
auto rc = sysctl(what, 2, &value, &length, nullptr, 0);
return rc != -1 ? value : 0;
}
Expand Down

0 comments on commit edbeb82

Please sign in to comment.