Browse code

core: accept signed int for fixup FPARAM_INT

Daniel-Constantin Mierla authored on 13/03/2011 22:03:37
Showing 1 changed files
... ...
@@ -1038,7 +1038,7 @@ int fix_param(int type, void** param)
1038 1038
 {
1039 1039
 	fparam_t* p;
1040 1040
 	str name, s;
1041
-	unsigned int num;
1041
+	int num;
1042 1042
 	int err;
1043 1043
 
1044 1044
 	p = (fparam_t*)pkg_malloc(sizeof(fparam_t));
... ...
@@ -1064,7 +1064,7 @@ int fix_param(int type, void** param)
1064 1064
 		case FPARAM_INT:
1065 1065
 			s.s = (char*)*param;
1066 1066
 			s.len = strlen(s.s);
1067
-			err = str2int(&s, &num);
1067
+			err = str2sint(&s, &num);
1068 1068
 			if (err == 0) {
1069 1069
 				p->v.i = (int)num;
1070 1070
 			} else {