Skip to content

Commit 270cc5c

Browse files
committed
.
1 parent f9d48cc commit 270cc5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CImg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26632,7 +26632,7 @@ namespace cimg_library {
2663226632
for (unsigned int k = 1; k<count; k<<=1)
2663326633
std::memcpy(&img[pos + k*nb_elts],&img[pos],std::min(k,count - k)*nb_elts*sizeof(T));
2663426634
} else std::memset(&img[pos],0,count*sizeof(T));
26635-
if (is_push_heap) for (unsigned int k = 0; k<count*nb_elts; ++k) {
26635+
if (is_push_heap) for (unsigned int k = 0; k<count*nb_elts1; ++k) {
2663626636
int index = pos + k;
2663726637
while (index>0) { // Heapify-up
2663826638
const int index_parent = (index - 1)/2;
@@ -26656,7 +26656,7 @@ namespace cimg_library {
2665626656
std::memcpy(&ptr[pos + k*nb_elts],&ptr[pos],std::min(k,count - k)*nb_elts*sizeof(T));
2665726657
}
2665826658
} else cimg_forC(img,c) std::memset(img.data(0,pos,0,c),0,count*sizeof(T));
26659-
if (is_push_heap) for (unsigned int k = 0; k<count*nb_elts; ++k) {
26659+
if (is_push_heap) for (unsigned int k = 0; k<count*nb_elts1; ++k) {
2666026660
int index = pos + k;
2666126661
while (index>0) { // Heapify-up
2666226662
const int index_parent = (index - 1)/2;

0 commit comments

Comments
 (0)