diff options
author | Guido van Rossum <guido@python.org> | 1993-11-10 12:53:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-11-10 12:53:24 (GMT) |
commit | 52f2c05401ab13eab45a91d39089866f55ef3c9b (patch) | |
tree | ae73dc8f72a56cc6c15ae30e9b2e78ef654ae20c /Objects | |
parent | a3d78fb268da5cf7cd4d990cf118bfc01650a8d9 (diff) | |
download | cpython-52f2c05401ab13eab45a91d39089866f55ef3c9b.zip cpython-52f2c05401ab13eab45a91d39089866f55ef3c9b.tar.gz cpython-52f2c05401ab13eab45a91d39089866f55ef3c9b.tar.bz2 |
* 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.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 2 | ||||
-rw-r--r-- | Objects/mappingobject.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index c1c1c19..65512be 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -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 && diff --git a/Objects/mappingobject.c b/Objects/mappingobject.c index c1c1c19..65512be 100644 --- a/Objects/mappingobject.c +++ b/Objects/mappingobject.c @@ -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 && |