mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +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
|
// find end of line
|
||||||
CTString strLine = strText;
|
CTString strLine = strText;
|
||||||
char *pchEndOfLine = strchr(strLine, '\n');
|
char *pchEndOfLine = (char *) strchr(strLine, '\n');
|
||||||
// if found
|
// if found
|
||||||
if (pchEndOfLine!=NULL) {
|
if (pchEndOfLine!=NULL) {
|
||||||
// cut there
|
// cut there
|
||||||
|
|
|
@ -31,7 +31,7 @@ CTString GetNextParam(void)
|
||||||
// if the first char is quote
|
// if the first char is quote
|
||||||
if (_strCmd[0]=='"') {
|
if (_strCmd[0]=='"') {
|
||||||
// find first next quote
|
// find first next quote
|
||||||
char *pchClosingQuote = strchr(_strCmd+1, '"');
|
char *pchClosingQuote = (char *) strchr(_strCmd+1, '"');
|
||||||
// if not found
|
// if not found
|
||||||
if (pchClosingQuote==NULL) {
|
if (pchClosingQuote==NULL) {
|
||||||
// error in command line
|
// error in command line
|
||||||
|
|
Loading…
Reference in New Issue
Block a user