Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Address reviewer's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Carneiro committed Aug 19, 2014
1 parent d0a957f commit b2b1c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamgee/variant_header.cpp
Expand Up @@ -82,7 +82,7 @@ bool VariantHeader::has_individual_field(const string field) const {

int32_t VariantHeader::shared_field_index(const string& tag) const {
const auto index = bcf_hdr_id2int(m_header.get(), BCF_DT_ID, tag.c_str());
return index > 0 ? index : missing_values::int32;
return index >= 0 ? index : missing_values::int32;
}

}

0 comments on commit b2b1c1d

Please sign in to comment.