mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 16:01:31 +02:00
b2/eval.c (eval_rel): fix stop pointer when parsing absolute tolerance values
This commit is contained in:
parent
6159bdfcdb
commit
8c26e5f708
@ -211,7 +211,7 @@ int eval_rel(const struct format *fmt, const char *s,
|
|||||||
stop = strchr(s, 0);
|
stop = strchr(s, 0);
|
||||||
if (!strip_unit(s, &stop, fmt->u.rel->u.abs, &mult))
|
if (!strip_unit(s, &stop, fmt->u.rel->u.abs, &mult))
|
||||||
return 0;
|
return 0;
|
||||||
if (!relative(s, perc, &res->u.rel.plus, &res->u.rel.minus))
|
if (!relative(s, stop, &res->u.rel.plus, &res->u.rel.minus))
|
||||||
return 0;
|
return 0;
|
||||||
res->u.rel.plus *= mult;
|
res->u.rel.plus *= mult;
|
||||||
res->u.rel.minus *= mult;
|
res->u.rel.minus *= mult;
|
||||||
|
Loading…
Reference in New Issue
Block a user