Skip to content

Commit

Permalink
Fix compilation under R-devl
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed May 19, 2024
1 parent fc91be9 commit 4f5ac50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rstan/rstan/src/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extern SEXP is_Null_NS(SEXP ns);
*/
SEXP is_Null_NS(SEXP ns) {
SEXP ans;
PROTECT(ans = allocVector(LGLSXP, 1));
PROTECT(ans = Rf_allocVector(LGLSXP, 1));
LOGICAL(ans)[0] = 1;
PROTECT(ns);
if (TYPEOF(ns) == EXTPTRSXP) {
Expand Down

0 comments on commit 4f5ac50

Please sign in to comment.