mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
* parsermodule.c, Makefile, config.c: rudimentary interface to the Python
parser. * mappingobject.c (lookmapping): 'freeslot' was never used due to a bug in the code.
This commit is contained in:
parent
a3d78fb268
commit
52f2c05401
4 changed files with 117 additions and 2 deletions
|
@ -147,7 +147,7 @@ lookmapping(mp, key, hash)
|
|||
return ep;
|
||||
}
|
||||
if (ep->me_key == dummy) {
|
||||
if (freeslot != NULL)
|
||||
if (freeslot == NULL)
|
||||
freeslot = ep;
|
||||
}
|
||||
else if (ep->me_hash == hash &&
|
||||
|
|
|
@ -147,7 +147,7 @@ lookmapping(mp, key, hash)
|
|||
return ep;
|
||||
}
|
||||
if (ep->me_key == dummy) {
|
||||
if (freeslot != NULL)
|
||||
if (freeslot == NULL)
|
||||
freeslot = ep;
|
||||
}
|
||||
else if (ep->me_hash == hash &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue