Skip to content

Commit

Permalink
fixed casting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kcibul committed Feb 18, 2022
1 parent 9466c87 commit f0a3049
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ private void finalizeCurrentVariant(final List<VariantContext> unmergedVariantCa
}

// Add inferred genotypes
for (int sampleId = samplesNotEncountered.nextSetBit(0); sampleId >= 0; sampleId = samplesNotEncountered.nextSetBit(sampleId+1)) {
// painful casting back and forth between int and Long (as used in the map). Good candidate to simplify
for (Long sampleId = Long.valueOf(samplesNotEncountered.nextSetBit(0)); sampleId >= 0; sampleId = Long.valueOf(samplesNotEncountered.nextSetBit(sampleId.intValue()+1))) {
genotypeBuilder.reset(false);
genotypeBuilder.name(sampleIdToName.get(sampleId));
genotypeBuilder.alleles(gtAlleles);
Expand Down

0 comments on commit f0a3049

Please sign in to comment.