}
else {
ep = &ep0[ix];
+ assert(ep->me_key != NULL);
if (ep->me_key == key) {
*value_addr = &ep->me_value;
if (hashpos != NULL)
*hashpos = i;
return ix;
}
- if (ep->me_key != NULL && ep->me_hash == hash) {
+ if (ep->me_hash == hash) {
startkey = ep->me_key;
Py_INCREF(startkey);
cmp = PyObject_RichCompareBool(startkey, key, Py_EQ);
continue;
}
ep = &ep0[ix];
+ assert(ep->me_key != NULL);
if (ep->me_key == key) {
if (hashpos != NULL) {
*hashpos = i;
*value_addr = &ep->me_value;
return ix;
}
- if (ep->me_hash == hash && ep->me_key != NULL) {
+ if (ep->me_hash == hash) {
startkey = ep->me_key;
Py_INCREF(startkey);
cmp = PyObject_RichCompareBool(startkey, key, Py_EQ);
}
else {
ep = &ep0[ix];
- /* only split table can be ix != DKIX_DUMMY && me_key == NULL */
assert(ep->me_key != NULL);
- if (ep->me_key == key || (ep->me_hash == hash && unicode_eq(ep->me_key, key))) {
+ if (ep->me_key == key
+ || (ep->me_hash == hash && unicode_eq(ep->me_key, key))) {
if (hashpos != NULL)
*hashpos = i;
*value_addr = &ep->me_value;
continue;
}
ep = &ep0[ix];
+ assert(ep->me_key != NULL);
if (ep->me_key == key
- || (ep->me_hash == hash
- && ep->me_key != NULL
- && unicode_eq(ep->me_key, key))) {
+ || (ep->me_hash == hash && unicode_eq(ep->me_key, key))) {
*value_addr = &ep->me_value;
if (hashpos != NULL) {
*hashpos = i;
}
assert(ix >= 0);
ep = &ep0[ix];
- assert(ep->me_key == NULL || PyUnicode_CheckExact(ep->me_key));
+ assert(ep->me_key != NULL && PyUnicode_CheckExact(ep->me_key));
if (ep->me_key == key ||
(ep->me_hash == hash && unicode_eq(ep->me_key, key))) {
if (hashpos != NULL)
}
assert(ix >= 0);
ep = &ep0[ix];
- assert(ep->me_key == NULL || PyUnicode_CheckExact(ep->me_key));
+ assert(ep->me_key != NULL && PyUnicode_CheckExact(ep->me_key));
if (ep->me_key == key ||
(ep->me_hash == hash && unicode_eq(ep->me_key, key))) {
if (hashpos != NULL)
{
PyDictObject *mp = (PyDictObject *)op;
PyDictKeysObject *keys = mp->ma_keys;
- PyDictKeyEntry *entries = DK_ENTRIES(mp->ma_keys);
+ PyDictKeyEntry *entries = DK_ENTRIES(keys);
Py_ssize_t i, n = keys->dk_nentries;
if (keys->dk_lookup == lookdict) {