diff Objects/setobject.c @ 45066:3f2496dc91db

Fixed r60466
author Christian Heimes <christian@cheimes.de>
date Thu, 31 Jan 2008 01:08:32 +0000
parents 71983603ea99
children 3d7b84daa34a
line wrap: on
line diff
--- a/Objects/setobject.c	Wed Jan 30 23:33:08 2008 +0000
+++ b/Objects/setobject.c	Thu Jan 31 01:08:32 2008 +0000
@@ -2236,6 +2236,7 @@
 	Py_ssize_t i;
 	PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x;
 	PyObject *ob = (PyObject *)so;
+	long hash;
 
 	/* Verify preconditions and exercise type/size checks */
 	assert(PyAnySet_Check(ob));
@@ -2280,7 +2281,7 @@
 
 	/* Exercise direct iteration */
 	i = 0, count = 0;
-	while (_PySet_Next((PyObject *)dup, &i, &x)) {
+	while (_PySet_NextEntry((PyObject *)dup, &i, &x, &hash)) {
 		s = PyUnicode_AsString(x);
 		assert(s && (s[0] == 'a' || s[0] == 'b' || s[0] == 'c'));
 		count++;