Merge pull request #903 from stweil/formatstring

Fix wrong format string
This commit is contained in:
zdenop 2017-05-11 11:28:50 +02:00 committed by GitHub
commit 7a99a41fcf

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,