Skip to content

Commit

Permalink
Fix possible compilation error in JSON field extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Dolzhenko authored and Egor Dolzhenko committed Apr 12, 2019
1 parent b5979a2 commit d0e7f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions input/CatalogLoading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static LocusDescriptionFromUser loadUserDescription(Json& locusJson, const Refer
LocusDescriptionFromUser userDescription;

assertFieldExists(locusJson, "LocusId");
userDescription.locusId = locusJson["LocusId"];
userDescription.locusId = locusJson["LocusId"].get<string>();

assertFieldExists(locusJson, "ReferenceRegion");
makeArray(locusJson["ReferenceRegion"]);
Expand All @@ -144,7 +144,7 @@ static LocusDescriptionFromUser loadUserDescription(Json& locusJson, const Refer
}

assertFieldExists(locusJson, "LocusStructure");
userDescription.locusStructure = locusJson["LocusStructure"];
userDescription.locusStructure = locusJson["LocusStructure"].get<string>();

assertFieldExists(locusJson, "VariantType");
makeArray(locusJson["VariantType"]);
Expand Down

0 comments on commit d0e7f1b

Please sign in to comment.