]> sigrok.org Git - sigrok-cli.git/commit
decode: stricter check for integer decoder options
authorGerhard Sittig <redacted>
Sat, 1 Dec 2018 11:26:34 +0000 (12:26 +0100)
committerGerhard Sittig <redacted>
Sat, 1 Dec 2018 11:26:34 +0000 (12:26 +0100)
commitb5c8f3a14ae5df5988f7491e4b65a1b3f60c089a
tree6b4b4c451a75c5e88f780e58fe68df5ce81ffd6a
parent4c1a29f449343e258bdaa556d0a2469fcd3725df
decode: stricter check for integer decoder options

Tighten the check for integer type decoder options. Insist that the
conversion must have consumed all of the input text. Early reject specs
like "1m" or "8.0", but also unusual specs like "1 ". This shall avoid
later confusion when "seemingly accepted" specs won't take effect during
operation.
decode.c