Permalink
Browse files

cosmetic tweak

  • Loading branch information...
1 parent fb9341d commit e0758ecc93fbaa3657333a7c967f52390b9773fb @richcarl richcarl committed with Eric Merritt Jul 25, 2010
@@ -287,9 +287,9 @@ static int handle_end(void *ctx, int array)
container_t *c = st->c;
/* back-patch the header */
if (array) {
- ei_encode_tuple_header(st->x.buff, &st->c->index, st->c->count);
+ ei_encode_tuple_header(st->x.buff, &c->index, c->count);
} else {
- ei_encode_list_header(st->x.buff, &st->c->index, st->c->count);
+ ei_encode_list_header(st->x.buff, &c->index, c->count);
ei_x_encode_empty_list(&st->x); /* also terminate the list */
}
/* unlink and decallocate container struct */
@@ -306,9 +306,9 @@ static int handle_end(void *ctx, int array)
container_t *c = st->c;
/* back-patch the header */
if (array) {
- ei_encode_tuple_header(st->x.buff, &st->c->index, st->c->count);
+ ei_encode_tuple_header(st->x.buff, &c->index, c->count);
} else {
- ei_encode_list_header(st->x.buff, &st->c->index, st->c->count);
+ ei_encode_list_header(st->x.buff, &c->index, c->count);
ei_x_encode_empty_list(&st->x); /* also terminate the list */
}
/* unlink and decallocate container struct */

0 comments on commit e0758ec

Please sign in to comment.