summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-09-01 18:07:08 +0000
committerStef Walter <stef@memberwebs.com>2004-09-01 18:07:08 +0000
commite1622ec1957dba431a0df1133833984522ad1118 (patch)
treed372cf4d9e1de79ddde63736bda6801d6173c83a /src
parent3d4ec97f50b39c6fb600348be1eb495e5b8c37b4 (diff)
Fix warnings
Diffstat (limited to 'src')
-rw-r--r--src/rtfparser.cpp2
-rw-r--r--src/usuals.h4
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>