From e2f92de6a90ae11a6d8e01bd17fd88b005516835 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 11 Nov 2017 13:06:26 +0200 Subject: Add the const qualifier to "char *" variables that refer to literal strings. (#4370) --- Python/pystrtod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Python/pystrtod.c') diff --git a/Python/pystrtod.c b/Python/pystrtod.c index f19d2399b3..9bf9363862 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -597,7 +597,8 @@ Py_LOCAL_INLINE(char *) ensure_decimal_point(char* buffer, size_t buf_size, int precision) { int digit_count, insert_count = 0, convert_to_exp = 0; - char *chars_to_insert, *digits_start; + const char *chars_to_insert; + char *digits_start; /* search for the first non-digit character */ char *p = buffer; -- cgit v1.2.1