mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-02 21:40:15 +01:00
Accept a leading sign character in _cairo_strtod.
This commit is contained in:
parent
06f405c775
commit
b7d67433b7
1 changed files with 2 additions and 0 deletions
|
|
@ -862,6 +862,8 @@ _cairo_strtod (const char *nptr, char **endptr)
|
|||
bufptr += decimal_point_len;
|
||||
delta -= decimal_point_len - 1;
|
||||
have_dp = TRUE;
|
||||
} else if (bufptr == buf && (*p == '-' || *p == '+')) {
|
||||
*bufptr++ = *p;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue