Skip to content

Small clean-ups#2

Open
dnbaker wants to merge 6 commits intoalshai:masterfrom
dnbaker:master
Open

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

Conversation

@dnbaker
Copy link

@dnbaker dnbaker commented Oct 4, 2019

Mostly utilities, maybe a bug.

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
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