Browse code

core: mod fixup spve_uint and spve_str fix

fixup_spve_uint() and fixup_spve_str() wrongly converted the
second parameter to a spve instead of an int or str.

Reported-by: Daniel-Constantin Mierla <miconda@gmail.com>

Andrei Pelinescu-Onciul authored on 11/12/2009 10:33:57
Showing 1 changed files
... ...
@@ -232,7 +232,8 @@ FIXUP_F2FP_T(igp_pvar_pvar, 1, 3, 1, FPARAM_INT|FPARAM_PVS, FPARAM_PVS)
232 232
 	}
233 233
 
234 234
 
235
+/* format: name, minp, maxp, no_of_spve_params, type_for_rest_params */
235 236
 FIXUP_F_SPVE_T(spve_spve, 1, 2, 2, 0)
236
-FIXUP_F_SPVE_T(spve_uint, 1, 2, 2, FPARAM_INT)
237
-FIXUP_F_SPVE_T(spve_str, 1, 2, 2, FPARAM_STR)
237
+FIXUP_F_SPVE_T(spve_uint, 1, 2, 1, FPARAM_INT)
238
+FIXUP_F_SPVE_T(spve_str, 1, 2, 1, FPARAM_STR)
238 239
 FIXUP_F_SPVE_T(spve_null, 1, 1, 1, 0)