Skip to content

Commit

Permalink
Ver 0.9.5B, (Beta)
Browse files Browse the repository at this point in the history
- Fixed a few Linux/gcc warnings.
  • Loading branch information
Ari Tsironis committed May 15, 2020
1 parent 24628ed commit 799ac66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Contrib/at67/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,8 @@ namespace Compiler
case VarType::VarArray1: writeArray1d(codeLine, codeLineIndex, lbra, rbra, intSize, arrayPtr); break;
case VarType::VarArray2: writeArray2d(codeLine, codeLineIndex, lbra, rbra, intSize, arrayPtr); break;
case VarType::VarArray3: writeArray3d(codeLine, codeLineIndex, lbra, rbra, intSize, arrayPtr); break;

default: break;
}

return true;
Expand Down Expand Up @@ -3595,7 +3597,7 @@ namespace Compiler
//fprintf(stderr, "%d\n", lineLength + COMMENT_PADDING - (lineLength % COMMENT_PADDING));

// Line spacing for parsed code and non parsed code is different
bool dontParse = (i+1 < _codeLines.size()) ? _codeLines[i+1]._dontParse : false;
bool dontParse = (i+1 < int(_codeLines.size())) ? _codeLines[i+1]._dontParse : false;
std::string newLine = (_codeLines[i]._dontParse && dontParse) ? "\n" : "\n\n";
line += "; " + _codeLines[i]._text + newLine;
_output.push_back(line);
Expand Down
2 changes: 2 additions & 0 deletions Contrib/at67/keywords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ namespace Keywords
(Compiler::getCodeRomType() >= Cpu::ROMv5a) ? Compiler::emitVcpuAsm("CALLI", "convertArr3d", false, codeLineIndex) : Compiler::emitVcpuAsm("CALL", "convertArr3dAddr", false);
}
break;

default: break;
}

Operators::createTmpVar(numeric);
Expand Down

0 comments on commit 799ac66

Please sign in to comment.