Skip to content

Commit 3506673

Browse files
committed
[Cleanup] Changed variable type to match function return value.
checkForSentinelMode() returns an int, not a bool.
1 parent 0244fa1 commit 3506673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Win32_Interop/Win32_QFork.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ LONG CALLBACK VectoredHeapMapper(PEXCEPTION_POINTERS info) {
669669
// QFork API
670670
StartupStatus QForkStartup(int argc, char** argv) {
671671
bool foundChildFlag = false;
672-
bool foundSentinelMode = checkForSentinelMode(argc, argv);
672+
int sentinelMode = checkForSentinelMode(argc, argv);
673673
HANDLE QForkConrolMemoryMapHandle = NULL;
674674
DWORD PPID = 0;
675675
__int64 maxheapBytes = -1;
@@ -747,7 +747,7 @@ StartupStatus QForkStartup(int argc, char** argv) {
747747
}
748748

749749
if( maxheapBytes == -1 ) {
750-
if (foundSentinelMode) {
750+
if (sentinelMode == 1) {
751751
// Sentinel mode does not need a large heap. This conserves disk space and page file reservation requirements.
752752
maxheapBytes = cSentinelHeapSize;
753753
} else {

0 commit comments

Comments
 (0)