Skip to content

Commit 7b65da3

Browse files
yuw444pd3
authored andcommitted
Typo, change idx to val
1 parent dac8f29 commit 7b65da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htslib/vcf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ set to one of BCF_ERR* codes and must be checked before calling bcf_write().
10231023
#define bcf_gt_unphased(idx) (((idx)+1)<<1)
10241024
#define bcf_gt_missing 0
10251025
#define bcf_gt_is_missing(val) ((val)>>1 ? 0 : 1)
1026-
#define bcf_gt_is_phased(idx) ((idx)&1)
1026+
#define bcf_gt_is_phased(val) ((val)&1)
10271027
#define bcf_gt_allele(val) (((val)>>1)-1)
10281028

10291029
/** Conversion between alleles indexes to Number=G genotype index (assuming diploid, all 0-based) */

0 commit comments

Comments
 (0)