mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Add the const qualifier to "char *" variables that refer to literal strings. (#4370)
This commit is contained in:
parent
e184cfd7bf
commit
e2f92de6a9
23 changed files with 46 additions and 41 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue