Skip to content

Commit

Permalink
Rf_ 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MEO265 authored May 7, 2024
1 parent 57185b3 commit baba4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/split_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ extern "C" SEXP split_json(SEXP strSEXP) {
SEXP valuesR = PROTECT(Rf_allocVector(STRSXP, values.size()));

Check warning on line 76 in src/split_json.cpp

View check run for this annotation

Codecov / codecov/patch

src/split_json.cpp#L74-L76

Added lines #L74 - L76 were not covered by tests

for (size_t j = 0; j < keys.size(); ++j) {
SET_STRING_ELT(keysR, j, keysNA[j] ? NA_STRING : mkChar(keys[j].c_str()));
SET_STRING_ELT(keysR, j, keysNA[j] ? NA_STRING : Rf_mkChar(keys[j].c_str()));

Check warning on line 79 in src/split_json.cpp

View check run for this annotation

Codecov / codecov/patch

src/split_json.cpp#L78-L79

Added lines #L78 - L79 were not covered by tests
}
for (size_t j = 0; j < values.size(); ++j) {
SET_STRING_ELT(valuesR, j, valuesNA[j] ? NA_STRING : mkChar(values[j].c_str()));
SET_STRING_ELT(valuesR, j, valuesNA[j] ? NA_STRING : Rf_mkChar(values[j].c_str()));

Check warning on line 82 in src/split_json.cpp

View check run for this annotation

Codecov / codecov/patch

src/split_json.cpp#L81-L82

Added lines #L81 - L82 were not covered by tests
}

SET_VECTOR_ELT(ans, 0, keysR);
Expand Down

0 comments on commit baba4bc

Please sign in to comment.