From 7b65da35a0af7125dd87ad83b18581ab648a9090 Mon Sep 17 00:00:00 2001 From: Yu Wang Date: Mon, 6 Jan 2025 15:19:04 -0600 Subject: [PATCH] Typo, change idx to val --- htslib/vcf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htslib/vcf.h b/htslib/vcf.h index 9a36cab05..e145b04b8 100644 --- a/htslib/vcf.h +++ b/htslib/vcf.h @@ -1023,7 +1023,7 @@ set to one of BCF_ERR* codes and must be checked before calling bcf_write(). #define bcf_gt_unphased(idx) (((idx)+1)<<1) #define bcf_gt_missing 0 #define bcf_gt_is_missing(val) ((val)>>1 ? 0 : 1) - #define bcf_gt_is_phased(idx) ((idx)&1) + #define bcf_gt_is_phased(val) ((val)&1) #define bcf_gt_allele(val) (((val)>>1)-1) /** Conversion between alleles indexes to Number=G genotype index (assuming diploid, all 0-based) */