samtools / bcftools

This is the official development repository for BCFtools. See installation instructions and other documentation here http://samtools.github.io/bcftools/howtos/install.html
http://samtools.github.io/bcftools/
Other
666 stars 240 forks source link

Portability improvements #2044

Closed daviesrob closed 9 months ago

daviesrob commented 10 months ago

Use htslib/hts_endian.h functions to avoid problems with unaligned access, and to ensure numbers are byte swapped on platforms that need it.

Ensure the right pointer type is passed to bcf_update_info_int32() in vcfconvert.c's _set_chrom_pos_ref_alt() function.

This should fix any latent problems on 32-bit arm hard-float that were in areas not covered by pull request #2042

After applying this patch, all tests pass on big-endian platforms.