Skip to content

Commit 9346064

Browse files
committed
fix segfault as per tessarin#1
1 parent 01efa54 commit 9346064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MCQuantization.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ MCQuantizeData(MCTriplet *data, mc_uint_t size, mc_byte_t level)
7878

7979
/* find new cube data sizes */
8080
mc_uint_t newSize = 0;
81-
while (parentCube->data[newSize].value[dim] <= median)
81+
while (parentCube->data[newSize].value[dim] < median)
8282
newSize++;
8383
/* newSize is now the index of the first element above the
8484
* median, thus it is also the count of elements below the median */

0 commit comments

Comments
 (0)