Skip to content

Commit fcfdc2d

Browse files
committed
simplify is_na()
1 parent 469da1c commit fcfdc2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/traits/is_na.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace Rcpp{
3939

4040
template <>
4141
inline bool is_na<REALSXP>(double x) {
42-
return internal::Rcpp_IsNA(x) || internal::Rcpp_IsNaN(x);
42+
return R_isnancpp(x);
4343
}
4444

4545
template <>

0 commit comments

Comments
 (0)