mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Trent Mick: use size_t instead of int where appropriate (set_key()).
This commit is contained in:
parent
26418a90f0
commit
e826895d48
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ set_key(r, key)
|
|||
char *key;
|
||||
{
|
||||
unsigned long k1=995, k2=576, k3=767, k4=671, k5=463;
|
||||
int i;
|
||||
int len = strlen(key);
|
||||
size_t i;
|
||||
size_t len = strlen(key);
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
unsigned short ki = Py_CHARMASK(key[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue