Browse Source

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

Raphael Coeffic 19 năm trước cách đây
mục cha
commit
dd807399bc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modparam.c

+ 1 - 1
modparam.c

@@ -87,7 +87,7 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
 		if (regexec(&preg, t->exports->name, 0, 0, 0) == 0) {
 			DBG("set_mod_param_regex: '%s' matches module '%s'\n", regex, t->exports->name);
 			mod_found = 1;
-			ptr = find_param_export(t, name, type | (type & (PARAM_STR|PARAM_STRING))?PARAM_STR|PARAM_STRING:0, &param_type);
+			ptr = find_param_export(t, name, type | ((type & (PARAM_STR|PARAM_STRING))?PARAM_STR|PARAM_STRING:0), &param_type);
 			if (ptr) {
 				// type casting
 				if (type == PARAM_STRING && PARAM_TYPE_MASK(param_type) == PARAM_STR) {