Skip to content

Commit

Permalink
avoid initializer lists to hide bug with different compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
knopkem committed Apr 14, 2023
1 parent 69a935f commit cadd00d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dicom-dimse-native",
"version": "2.4.0",
"version": "2.4.1",
"description": "native addon using DCMTK dicom toolkit",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/FindAsyncWorker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ void FindAsyncWorker::Execute(const ExecutionProgress &progress)
std::string vr = std::string(t.getVR().getVRName());
json jsonValue = json::array();
if (vr == "PN") {
jsonValue.push_back({json{{"Alphabetic", value}}});
json j;
j["Alphabetic"] = value;
jsonValue.push_back(j);
}
else if (vr == "IS" || vr == "SL" || vr == "SS" || vr == "UL" || vr == "US") {
if (value.length() == 0) {
Expand Down

0 comments on commit cadd00d

Please sign in to comment.