diff options
-rw-r--r-- | src/rtfparser.cpp | 2 | ||||
-rw-r--r-- | src/usuals.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/rtfparser.cpp b/src/rtfparser.cpp index 595d404..bf5ff10 100644 --- a/src/rtfparser.cpp +++ b/src/rtfparser.cpp @@ -348,7 +348,7 @@ bool RtfParser::parseControlWord() while(1) { int ch = fgetc(m_file); - if(ch == WEOF) + if(ch == (int)WEOF) return false; bool empty = controlword.empty(); diff --git a/src/usuals.h b/src/usuals.h index a822e2c..167c241 100644 --- a/src/usuals.h +++ b/src/usuals.h @@ -56,8 +56,12 @@ #include <stdlib.h> #ifndef ASSERT +#ifdef _DEBUG #include <assert.h> #define ASSERT assert +#else + #define ASSERT +#endif #endif #include <wchar.h> |