mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 19:55:54 +01:00
Fixed some things GCC complained about on this Linux box.
This commit is contained in:
parent
2be26952c7
commit
9c5fa5f0fc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user