fix: store memoryUsed as long long instead of int#292
Merged
alphagocc merged 14 commits intoProject-LemonLime:masterfrom Apr 9, 2026
Merged
fix: store memoryUsed as long long instead of int#292alphagocc merged 14 commits intoProject-LemonLime:masterfrom
alphagocc merged 14 commits intoProject-LemonLime:masterfrom
Conversation
Contributor
Author
|
Project_LemonLime/src/core/judgingthread.cpp Lines 924 to 973 in 5abd55e 这里怎么把同样的逻辑写了两遍 |
Member
不知道,古早代码,感觉可以优化掉 |
Contributor
Author
|
修复这个 bug 可能需要进行其他修改,我会拆成多个 pr 进行修改。 |
alphagocc
reviewed
Mar 23, 2026
alphagocc
reviewed
Mar 25, 2026
alphagocc
reviewed
Apr 8, 2026
ZnPdCo
commented
Apr 9, 2026
| in >> timeUsed; | ||
| in >> memoryUsed; | ||
| // memoryUsed 之前存储为 int 三维数组,现在改为了 qint64,因此先读取旧结构,再逐层转换 | ||
| QList<QList<QList<int>>> oldMemoryUsed; |
Contributor
Author
There was a problem hiding this comment.
我是不是忘记 memoryUsed.clear(); 了😂
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复 #281 中的 int 存空间问题(显示为负数),以及 Windows 下判定空间用 int 或 unsigned int 的问题(无法开 > 2GB 的空间)
注意,#281 的问题还没有完全修复。
本地使用 Windows 测试下面的代码:
(不知道为什么过了一个月再测这段代码就超空间了,动态调整一下 c 的 size 应该能行)