Skip to content

Commit 5c254db

Browse files
committed
upd
1 parent bdca237 commit 5c254db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/judgingthread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ void JudgingThread::runProgram() {
924924
if (memoryLimit != -1) {
925925
GetProcessMemoryInfo(pi.hProcess, (PROCESS_MEMORY_COUNTERS *)&memoryInfo, sizeof(memoryInfo));
926926

927-
if (qMax(memoryInfo.PrivateUsage, memoryInfo.PeakWorkingSetSize) > memoryLimit * 1024 * 1024) {
927+
if (qMax(memoryInfo.PrivateUsage, memoryInfo.PeakWorkingSetSize) > 1ll * memoryLimit * 1024 * 1024) {
928928
TerminateProcess(pi.hProcess, 0);
929929

930930
score = 0;

0 commit comments

Comments
 (0)