From f9075eb5ccb79c4338fb6230dd898f98a02934fd Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 4 Jul 2013 19:58:12 +0200 Subject: [PATCH] warning C4805 unsafe mixture of type int and type bool It is a mystery what this is supposed to do, but rsc is sort of going away in the mid-term anyway so who cares... Change-Id: If1c1b8216c0429909c0571b3360b6dca97f265c4 --- rsc/source/parser/rsclex.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index 0f24556dcd4a..b4a23f0a0bf5 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -151,7 +151,8 @@ int MakeToken( YYSTYPE * pTokenVal ) break; }; - if( c == pFI->IsEof() ) + // FIXME: wtf is this supposed to do? + if( (c != 0) == pFI->IsEof() ) { return( 0 ); }