Skip to content

Commit e73447e

Browse files
committed
fix parse_float bug
1 parent ab70272 commit e73447e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ started 8.5 24/1/17
22
- add max_slope to lhist
33
- gaussnoise goes via vips8 now
44
- add snake option to array join [Joe Padfield]
5+
- parse_float was broken for numbers starting "0."
56

67
started 8.4.1 25/9/16
78
- simplify nip2-icon.rc build, bgilbert

TODO

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
- should parse_float / _int etc. allow leading and trailing spaces?
2+
3+
(split is_space x)?0
4+
5+
- add entropy menu item
6+
17
- sharpen should use new interface?
28

39
- can we call affine from nip2 vips_call? do we need a double array?

share/nip2/start/_convert.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ parse_float l
189189

190190
ipart = parse_int parts?0;
191191
sign
192-
= 1, ipart > 0
192+
= 1, ipart >= 0
193193
= -1;
194194
fpart
195195
= 0, parts?1 == [];

0 commit comments

Comments
 (0)