]> sigrok.org Git - libsigrok.git/commit
strutil: Fix sr_parse_rational for integral parts between -0 and -1
authorStefan Brüns <redacted>
Sat, 23 Sep 2017 20:16:24 +0000 (22:16 +0200)
committerUwe Hermann <redacted>
Sun, 24 Sep 2017 19:04:46 +0000 (21:04 +0200)
commit41c47f2c6ac4cb7531588bd38c55af2484523385
tree3902d3c4104af79a1fd9ed4fe94316e4ddb8df5c
parentf05600f4be54c7f112815cc1624600517243898e
strutil: Fix sr_parse_rational for integral parts between -0 and -1

Values like '-0.1' would be parsed as being positive, as the integral
type does not discern +0 and -0. Also allow values without leading
integral value, to match behaviour of strtod/sr_atof.
src/strutil.c
tests/strutil.c