diff --git a/src/core/file_unix.cpp b/src/core/file_unix.cpp index 9950c46..0a83703 100644 --- a/src/core/file_unix.cpp +++ b/src/core/file_unix.cpp @@ -275,8 +275,7 @@ void cFile::Close() //throw(eFile) mpData->mpCurrStream = NULL; } - - mpData->mFileName.empty(); + mpData->mFileName.clear(); } bool cFile::IsOpen(void) const diff --git a/src/twparser/yylex.cpp b/src/twparser/yylex.cpp index a94cc57..27cf803 100644 --- a/src/twparser/yylex.cpp +++ b/src/twparser/yylex.cpp @@ -831,8 +831,8 @@ yy_scan::yylex() yyst = yy_next[yybase]; yy_jammed: ; state[++i] = (yy_state_t) yyst; - } while (!(yyst == (unsigned int)yy_endst || YY_INTERACTIVE && - yy_base[yyst] > yy_nxtmax && yy_default[yyst] == yy_endst)); + } while (!(yyst == (unsigned int)yy_endst || (YY_INTERACTIVE && + (yy_base[yyst] > yy_nxtmax) && (yy_default[yyst] == yy_endst)))); YY_DEBUG("\n", yyst, i); if (yyst != (unsigned int)yy_endst)