Skip to content

Commit 74c4584

Browse files
committed
use unsigned 1024
1 parent 0156c06 commit 74c4584

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/processrunner_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ ProcessRunnerResult WinProcessRunner::run() {
268268
if (config.memoryLimit != -1) {
269269
GetProcessMemoryInfo(pi.hProcess, (PROCESS_MEMORY_COUNTERS *)&memoryInfo, sizeof(memoryInfo));
270270

271-
if (qMax(memoryInfo.PrivateUsage, memoryInfo.PeakWorkingSetSize) > config.memoryLimit * 1024 * 1024) {
271+
if (qMax(memoryInfo.PrivateUsage, memoryInfo.PeakWorkingSetSize) > config.memoryLimit * 1024U * 1024) {
272272
TerminateProcess(pi.hProcess, 0);
273273

274274
res.score = 0;

0 commit comments

Comments
 (0)