summaryrefslogtreecommitdiff
path: root/include/compobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compobject.h')
-rw-r--r--include/compobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/compobject.h b/include/compobject.h
index 9ff1cde..13f14ad 100644
--- a/include/compobject.h
+++ b/include/compobject.h
@@ -20,7 +20,7 @@ typedef bool (*ObjectCallBackProc) (CompObject *object,
(sizeof (array) / sizeof (array[0]))
#define DISPATCH_CHECK(object, dispTab, tabSize) \
- ((object)->type () < (tabSize) && (dispTab)[(object)->type ()])
+ ((object)->type () < (int) (tabSize) && (dispTab)[(object)->type ()])
#define DISPATCH(object, dispTab, tabSize, args) \
if (DISPATCH_CHECK (object, dispTab, tabSize)) \