Fixed some things GCC complained about on this Linux box.

This commit is contained in:
Ryan C. Gordon 2016-04-02 02:03:41 -04:00
parent 2be26952c7
commit 9c5fa5f0fc
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ CTString CCompMessage::GetLine(INDEX iLine)
}
// find end of line
CTString strLine = strText;
char *pchEndOfLine = strchr(strLine, '\n');
char *pchEndOfLine = (char *) strchr(strLine, '\n');
// if found
if (pchEndOfLine!=NULL) {
// cut there

View File

@ -31,7 +31,7 @@ CTString GetNextParam(void)
// if the first char is quote
if (_strCmd[0]=='"') {
// find first next quote
char *pchClosingQuote = strchr(_strCmd+1, '"');
char *pchClosingQuote = (char *) strchr(_strCmd+1, '"');
// if not found
if (pchClosingQuote==NULL) {
// error in command line