1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 21:23:54 +00:00

silence operator precedence warning

This commit is contained in:
Evil Eye 2020-03-25 20:34:08 +01:00
parent 8dc081a60d
commit fea7e68fe9

View file

@ -368,7 +368,7 @@ namespace Compiler
{ {
if (mIgnoreNewline) if (mIgnoreNewline)
mErrorHandler.warning ("string contains newline character, make sure that it is intended", mLoc); mErrorHandler.warning ("string contains newline character, make sure that it is intended", mLoc);
else if (name.size() == 1 || name.size() == 2 && name[1] == '\r') else if (name.size() == 1 || (name.size() == 2 && name[1] == '\r'))
{ {
name.clear(); name.clear();
mLoc.mLiteral.clear(); mLoc.mLiteral.clear();