Skip to content

Commit

Permalink
Moved protection up 1 line.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicChr committed Apr 8, 2024
1 parent 5a1d780 commit fbf5e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,8 @@ SEXP cpp_sset_df(SEXP x, SEXP indices){
cpp11::function cheapr_sset = cpp11::package("cheapr")["sset"];
const SEXP *p_x = VECTOR_PTR_RO(x);
SEXP out = Rf_protect(Rf_allocVector(VECSXP, ncols));
SEXP *p_out = VECTOR_PTR(out);
++n_protections;
SEXP *p_out = VECTOR_PTR(out);
// Counting the number of:
// Zeroes
// Out-of-bounds indices
Expand Down

0 comments on commit fbf5e14

Please sign in to comment.