Skip to content

Commit f81e450

Browse files
committed
Fix nits.
1 parent f408ddf commit f81e450

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/dictobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ equally good collision statistics, needed less code & used less memory.
113113
*/
114114

115115
/* Object used as dummy key to fill deleted entries */
116-
static PyObject *dummy; /* Initialized by first call to newdictobject() */
116+
static PyObject *dummy = NULL; /* Initialized by first call to newdictobject() */
117117

118118
/* forward declarations */
119119
static dictentry *
@@ -567,7 +567,7 @@ PyDict_SetItem(register PyObject *op, PyObject *key, PyObject *value)
567567
*/
568568
if (!(mp->ma_used > n_used && mp->ma_fill*3 >= (mp->ma_mask+1)*2))
569569
return 0;
570-
return dictresize(mp, mp->ma_used*(mp->ma_used>50000 ? 2 : 4));
570+
return dictresize(mp, (mp->ma_used>50000 ? mp->ma_used*2 : mp->ma_used*4));
571571
}
572572

573573
int

0 commit comments

Comments
 (0)