Browse code

fixed parameter type expression in the call to find_param_export. it fixes the use of integer parameters.

Raphael Coeffic authored on 09/01/2006 09:25:38
Showing 1 changed files
... ...
@@ -87,7 +87,7 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
87 87
 		if (regexec(&preg, t->exports->name, 0, 0, 0) == 0) {
88 88
 			DBG("set_mod_param_regex: '%s' matches module '%s'\n", regex, t->exports->name);
89 89
 			mod_found = 1;
90
-			ptr = find_param_export(t, name, type | (type & (PARAM_STR|PARAM_STRING))?PARAM_STR|PARAM_STRING:0, &param_type);
90
+			ptr = find_param_export(t, name, type | ((type & (PARAM_STR|PARAM_STRING))?PARAM_STR|PARAM_STRING:0), &param_type);
91 91
 			if (ptr) {
92 92
 				// type casting
93 93
 				if (type == PARAM_STRING && PARAM_TYPE_MASK(param_type) == PARAM_STR) {