From e1622ec1957dba431a0df1133833984522ad1118 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 1 Sep 2004 18:07:08 +0000 Subject: Fix warnings --- src/rtfparser.cpp | 2 +- src/usuals.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 #ifndef ASSERT +#ifdef _DEBUG #include #define ASSERT assert +#else + #define ASSERT +#endif #endif #include -- cgit v1.2.3