mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
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:
parent
3454061334
commit
3cccae69e5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user