Skip to content

Commit ce2375a

Browse files
committed
Use Rf_isObject() over OBJECT()
1 parent 34d6d92 commit ce2375a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# slider (development version)
22

3+
* Removed usage of non-API `OBJECT()`.
4+
35
# slider 0.3.2
46

57
* Removed usage of non-API `STRING_PTR()` (#209).

src/params.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static SEXP check_scalar_lgl(SEXP x, SEXP x_arg) {
4747
// -----------------------------------------------------------------------------
4848

4949
static bool is_unbounded(SEXP x) {
50-
return !OBJECT(x) && TYPEOF(x) == REALSXP && REAL(x)[0] == R_PosInf;
50+
return !Rf_isObject(x) && TYPEOF(x) == REALSXP && REAL(x)[0] == R_PosInf;
5151
}
5252

5353
// -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)