You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e4dc001
Browse filesBrowse the repository at this point in the historyBrowse files
// Once you use more than the minimum, this kicks in...
37
-
int sgTargetFreeSpacePercentage = 100;
37
+
size_t sgTargetFreeSpacePercentage = 100;
38
38
39
39
40
40
@@ -44,30 +44,36 @@ int sgTargetFreeSpacePercentage = 100;
44
44
// Called internally before and GC operations
45
45
voidCommonInitAlloc()
46
46
{
47
+
// It is probably safe to use something like strtoull for parsing the size_t values as I'm sure every reasonable implementation treats them as uint64_t.
48
+
// But just to be pedantic let's use sscanf which is the only "official" way to do this in C++11.
49
+
// C++17 gives us std::charconv but I haven't twisted enough arms yet to have 17 be the minimum version.
0 commit comments