Skip to content

Small clean-ups#2

Open
dnbaker wants to merge 6 commits into
alshai:masterfrom
dnbaker:master
Open

Small clean-ups#2
dnbaker wants to merge 6 commits into
alshai:masterfrom
dnbaker:master

Conversation

@dnbaker

@dnbaker dnbaker commented Oct 4, 2019

Copy link
Copy Markdown

Mostly utilities, maybe a bug.

Comment thread hts_util.hpp
int32_t *gt_arr = NULL, ngt_arr = 0;
*ngt = bcf_get_genotypes(hdr, rec, &gt_arr, &ngt_arr);
if ( ngt<=0 ) return NULL; // GT not present
if ( *ngt<=0 ) return NULL; // GT not present

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was a bug, since pointers are always nonnegative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant