Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fpconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static inline int valid_number_character(char ch)

/* Calculate the size of the buffer required for a strtod locale
* conversion. */
static int strtod_buffer_size(const char *s)
static size_t strtod_buffer_size(const char *s)
{
const char *p = s;

Expand All @@ -113,7 +113,7 @@ double fpconv_strtod(const char *nptr, char **endptr)
{
char localbuf[FPCONV_G_FMT_BUFSIZE];
char *buf, *endbuf, *dp;
int buflen;
size_t buflen;
double value;

/* System strtod() is fine when decimal point is '.' */
Expand Down