We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2e160 commit f3e59fcCopy full SHA for f3e59fc
index.c
@@ -192,6 +192,7 @@ int32_t mm_idx_cal_max_occ(const mm_idx_t *mi, float f)
192
if (f <= 0.) return INT32_MAX;
193
for (i = 0; i < 1<<mi->b; ++i)
194
if (mi->B[i].h) n += kh_size((idxhash_t*)mi->B[i].h);
195
+ if (n == 0) return INT32_MAX;
196
a = (uint32_t*)malloc(n * 4);
197
for (i = n = 0; i < 1<<mi->b; ++i) {
198
idxhash_t *h = (idxhash_t*)mi->B[i].h;
0 commit comments