Fix wrong format string

The local variable intval is of type int.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2017-05-11 08:35:03 +02:00
parent 3454061334
commit 3cccae69e5

View File

@ -102,7 +102,7 @@ bool ParamUtils::SetParam(const char *name, const char* value,
IntParam *ip = FindParam<IntParam>(name, GlobalParams()->int_params,
member_params->int_params);
if (ip && ip->constraint_ok(constraint) &&
sscanf(value, INT32FORMAT, &intval) == 1) ip->set_value(intval);
sscanf(value, "%d", &intval) == 1) ip->set_value(intval);
// Look for the parameter among bool parameters.
BoolParam *bp = FindParam<BoolParam>(name, GlobalParams()->bool_params,