[NeoStats-Devel] [Commits] r2660 - trunk/include

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Sat Jul  9 07:02:56 2005
New Revision: 2660

Modified:
   trunk/include/neostats.h
Log:
fix modtype check since an AND on an enum will only work as expected for values of 1 and 2

Modified: trunk/include/neostats.h
==============================================================================
--- trunk/include/neostats.h	(original)
+++ trunk/include/neostats.h	Sat Jul  9 07:02:56 2005
@@ -944,8 +944,8 @@
 
 
 /* defines to easily detect different modules */
-#define IS_PERL_MOD(mod) ((mod)->modtype & MOD_PERL)
-#define IS_STD_MOD(mod) ((mod)->modtype & MOD_STANDARD)
+#define IS_PERL_MOD(mod) ((mod)->modtype == MOD_PERL)
+#define IS_STD_MOD(mod) ((mod)->modtype == MOD_STANDARD)
 
 /* to save some chars while typing */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.