Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Remove SET_TYPEOF and use LCONS() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Jun 30, 2024
1 parent aaab59d commit f10839a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getOption.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
int R_get_option(const char *option, int def) {
SEXP s, t;
int ret, pro=0;
PROTECT(t = s = allocList(3));pro++;
PROTECT(t = s = LCONS(R_NilValue, allocList(2)));pro++;
SET_TYPEOF(s, LANGSXP);
SETCAR(t, install("getOption")); t = CDR(t);
SETCAR(t, mkString(option)); t = CDR(t);
Expand Down

0 comments on commit f10839a

Please sign in to comment.