summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-01-08 01:03:36 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-01-08 01:03:36 (GMT)
commitd39d861a36bf2ff7ccbb8248fa7fb81517923877 (patch)
treedabf721d5b7b7686d0767f82bf702324f324fbdf /Python
parent2841af4cecb9a9ae5a16d8d2492dc10832707965 (diff)
downloadcpython-d39d861a36bf2ff7ccbb8248fa7fb81517923877.zip
cpython-d39d861a36bf2ff7ccbb8248fa7fb81517923877.tar.gz
cpython-d39d861a36bf2ff7ccbb8248fa7fb81517923877.tar.bz2
Fix icc warnings: strlen() returns size_t
Diffstat (limited to 'Python')
-rw-r--r--Python/pystrtod.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c
index 85eda91..3eccae8 100644
--- a/Python/pystrtod.c
+++ b/Python/pystrtod.c
@@ -44,7 +44,7 @@ PyOS_ascii_strtod(const char *nptr, char **endptr)
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 @@ PyOS_ascii_formatd(char *buffer,
{
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); */