ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Array-Heap/Heap.xs
(Generate patch)

Comparing Array-Heap/Heap.xs (file contents):
Revision 1.6 by root, Sun Apr 21 11:41:01 2013 UTC vs.
Revision 1.7 by root, Mon Oct 27 22:33:50 2014 UTC

288} 288}
289 289
290static void 290static void
291adjust_heap (AV *av, f_cmp cmp, void *cmp_data, int idx, int flags) 291adjust_heap (AV *av, f_cmp cmp, void *cmp_data, int idx, int flags)
292{ 292{
293 int len = AvFILLp (av);
294
295 if (idx > len)
296 croak ("Array::Heap::adjust_heap: index out of array bounds");
297
293 adjustheap (av, cmp, cmp_data, AvFILLp (av) + 1, idx, flags); 298 adjustheap (av, cmp, cmp_data, len + 1, idx, flags);
294} 299}
295 300
296MODULE = Array::Heap PACKAGE = Array::Heap 301MODULE = Array::Heap PACKAGE = Array::Heap
297 302
298void 303void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines