Commit df3263e5 authored by Jim Fulton's avatar Jim Fulton

Added comment and formatting changes mainly to overcome damage done by

merges.
parent d82fec0e
...@@ -724,7 +724,8 @@ _BTree_set(BTree *self, PyObject *keyarg, PyObject *value, ...@@ -724,7 +724,8 @@ _BTree_set(BTree *self, PyObject *keyarg, PyObject *value,
} }
} }
if (status == 2) { /* this is the last reference to child status */ if (status == 2) {
/* The child must be a BTree because bucket.set never returns 2 */
/* Two problems to solve: May have to adjust our own firstbucket, /* Two problems to solve: May have to adjust our own firstbucket,
* and the bucket that went away needs to get unlinked. * and the bucket that went away needs to get unlinked.
*/ */
...@@ -765,8 +766,8 @@ _BTree_set(BTree *self, PyObject *keyarg, PyObject *value, ...@@ -765,8 +766,8 @@ _BTree_set(BTree *self, PyObject *keyarg, PyObject *value,
* But first, if we're a bottom-level node, we've got more bucket-fiddling * But first, if we're a bottom-level node, we've got more bucket-fiddling
* to set up. * to set up.
*/ */
if (!SameType_Check(self, d->child)) { if (! SameType_Check(self, d->child)) {
/* We're about to delete a bucket. */ /* We're about to delete a bucket, so need to adjust bucket pointers. */
if (min) { if (min) {
/* It's not our first bucket, so we can tell the previous /* It's not our first bucket, so we can tell the previous
* bucket to adjust its reference to it. It can't be anyone * bucket to adjust its reference to it. It can't be anyone
......
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