- fix: In compiler options page, Can't save default stack size to 0MB.
This commit is contained in:
parent
eeb57ca6fa
commit
0e3a1fdca9
5
NEWS.md
5
NEWS.md
|
@ -2,8 +2,9 @@ Red Panda C++ Version 3.1
|
||||||
|
|
||||||
- fix: Can't correctly select in column mode.
|
- fix: Can't correctly select in column mode.
|
||||||
- fix: Can't correctly parse template parameters that contains "->", like "std::queue<std::function<auto()->void>>";
|
- fix: Can't correctly parse template parameters that contains "->", like "std::queue<std::function<auto()->void>>";
|
||||||
- fix: Shouldn't warn "xxx.s is modifed" when "Generate assembly" is reran.
|
- fix: Shouldn't warn "xxx.s is modifed" when "Generate assembly" is rerun.
|
||||||
- fix: Shouldn't warn "Makefile is modifed" when "View Makefile" is reran.
|
- fix: Shouldn't warn "Makefile is modifed" when "View Makefile" is rerun.
|
||||||
|
- fix: In compiler options page, Can't save default stack size to 0MB.
|
||||||
|
|
||||||
Red Panda C++ Version 3.0
|
Red Panda C++ Version 3.0
|
||||||
|
|
||||||
|
|
|
@ -436,7 +436,7 @@ QStringList Compiler::getCCompileArguments(bool checkSyntax)
|
||||||
else if (pOption->type == CompilerOptionType::Number) {
|
else if (pOption->type == CompilerOptionType::Number) {
|
||||||
bool ok;
|
bool ok;
|
||||||
int val = compileOptions[key].toInt(&ok);
|
int val = compileOptions[key].toInt(&ok);
|
||||||
if (ok) {
|
if (ok && val>0) {
|
||||||
val = pOption->scale * val;
|
val = pOption->scale * val;
|
||||||
result += QString("%1%2").arg(pOption->setting).arg(val);
|
result += QString("%1%2").arg(pOption->setting).arg(val);
|
||||||
}
|
}
|
||||||
|
@ -490,7 +490,7 @@ QStringList Compiler::getCppCompileArguments(bool checkSyntax)
|
||||||
else if (pOption->type == CompilerOptionType::Number) {
|
else if (pOption->type == CompilerOptionType::Number) {
|
||||||
bool ok;
|
bool ok;
|
||||||
int val = compileOptions[key].toInt(&ok);
|
int val = compileOptions[key].toInt(&ok);
|
||||||
if (ok) {
|
if (ok && val>0) {
|
||||||
val = pOption->scale * val;
|
val = pOption->scale * val;
|
||||||
result += QString("%1%2").arg(pOption->setting).arg(val);
|
result += QString("%1%2").arg(pOption->setting).arg(val);
|
||||||
}
|
}
|
||||||
|
@ -607,7 +607,7 @@ QStringList Compiler::getLibraryArguments(FileType fileType)
|
||||||
else if (pOption->type == CompilerOptionType::Number) {
|
else if (pOption->type == CompilerOptionType::Number) {
|
||||||
bool ok;
|
bool ok;
|
||||||
int val = compileOptions[key].toInt(&ok);
|
int val = compileOptions[key].toInt(&ok);
|
||||||
if (ok) {
|
if (ok && val>0) {
|
||||||
val = pOption->scale * val;
|
val = pOption->scale * val;
|
||||||
result += QString("%1%2").arg(pOption->setting).arg(val);
|
result += QString("%1%2").arg(pOption->setting).arg(val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue