Commit 99beb627 authored by Tim Peters's avatar Tim Peters

Finished backporting bugfixes for _bucket_set().

parent 689f3569
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
****************************************************************************/ ****************************************************************************/
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.51 2003/04/11 19:17:07 tim_one Exp $\n" #define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.52 2003/04/11 19:38:18 tim_one Exp $\n"
/* Use BUCKET_SEARCH to find the index at which a key belongs. /* Use BUCKET_SEARCH to find the index at which a key belongs.
* INDEX An int lvalue to hold the index i such that KEY belongs at * INDEX An int lvalue to hold the index i such that KEY belongs at
...@@ -331,8 +331,6 @@ _bucket_set(Bucket *self, PyObject *keyarg, PyObject *v, ...@@ -331,8 +331,6 @@ _bucket_set(Bucket *self, PyObject *keyarg, PyObject *v,
} }
/* The key exists at index i, and we need to replace the value. */ /* The key exists at index i, and we need to replace the value. */
COPY_VALUE_FROM_ARG(value, v, copied);
UNLESS(copied) goto Done;
#ifdef VALUE_SAME #ifdef VALUE_SAME
/* short-circuit if no change */ /* short-circuit if no change */
if (VALUE_SAME(self->values[i], value)) { if (VALUE_SAME(self->values[i], value)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment