Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
separators.
This commit is contained in:
parent
79f1aaef60
commit
6ed12fe8f8
|
@ -1,3 +1,9 @@
|
|||
2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
|
||||
|
||||
* src/fcxml.c:
|
||||
Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
|
||||
separators.
|
||||
|
||||
2003-06-09 Keith Packard <keithp@keithp.com>
|
||||
|
||||
* Tag version 2.2.1
|
||||
|
|
|
@ -962,7 +962,9 @@ FcStrtod (char *s, char **end)
|
|||
buf_end = 0;
|
||||
v = strtod (buf, &buf_end);
|
||||
if (buf_end)
|
||||
buf_end = s + (buf_end - buf) + 1 - dlen;
|
||||
buf_end = s + (buf_end - buf);
|
||||
if (buf_end > dot)
|
||||
buf_end -= dlen - 1;
|
||||
if (end)
|
||||
*end = buf_end;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue