Mercurial > cpython-lru_cache-weakref
diff Python/pystrtod.c @ 36230:ded4a497eb76 legacy-trunk
Fix icc warnings: strlen() returns size_t
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sun, 08 Jan 2006 01:03:36 +0000 |
| parents | 10440bcfa061 |
| children | 7fdc639bc5b4 |
line wrap: on
line diff
--- a/Python/pystrtod.c Sat Jan 07 23:20:46 2006 +0000 +++ b/Python/pystrtod.c Sun Jan 08 01:03:36 2006 +0000 @@ -44,7 +44,7 @@ double val = -1.0; struct lconv *locale_data; const char *decimal_point; - int decimal_point_len; + size_t decimal_point_len; const char *p, *decimal_point_pos; const char *end = NULL; /* Silence gcc */ @@ -165,9 +165,8 @@ { struct lconv *locale_data; const char *decimal_point; - int decimal_point_len; + size_t decimal_point_len, rest_len; char *p; - int rest_len; char format_char; /* g_return_val_if_fail (buffer != NULL, NULL); */
