Permalink
Browse files

fix off by one error

  • Loading branch information...
1 parent 8ceec0a commit effbcf7eb1127d5b699b28fbf23b8f99c74cd986 @sprsquish sprsquish committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/thrift_client/min_heap.c
@@ -87,7 +87,7 @@ heap_mark(tc_heap_t *heap)
if (heap->nodes != NULL) {
// index 0 is a placeholder
tc_node_t *node = &heap->nodes[1];
- for (int i = 0; i <= heap->size; i++, node++)
+ for (int i = 0; i < heap->size; i++, node++)
rb_gc_mark(node->obj);
}
}

0 comments on commit effbcf7

Please sign in to comment.