mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #25923: Added more const qualifiers to signatures of static and private functions.
This commit is contained in:
parent
2d06e84455
commit
ef1585eb9a
60 changed files with 210 additions and 191 deletions
|
@ -72,7 +72,7 @@ _enable_gc(int need_to_reenable_gc, PyObject *gc_module)
|
|||
|
||||
/* Convert ASCII to a positive int, no libc call. no overflow. -1 on error. */
|
||||
static int
|
||||
_pos_int_from_ascii(char *name)
|
||||
_pos_int_from_ascii(const char *name)
|
||||
{
|
||||
int num = 0;
|
||||
while (*name >= '0' && *name <= '9') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue