Skip to content

Commit

Permalink
Fix compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicChr committed Sep 20, 2024
1 parent dd6315a commit 12308b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scalars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@ SEXP cpp_val_replace(SEXP x, SEXP value, SEXP replace, bool recursive){
bool any_eq = false;
bool eq = false;

SEXP out;
SEXP out = Rf_protect(R_NilValue); ++NP;
switch ( TYPEOF(x) ){
case NILSXP: {
out = Rf_protect(R_NilValue); ++NP;
break;
}
case LGLSXP:
Expand Down

0 comments on commit 12308b7

Please sign in to comment.