We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a86ba6 commit 8a60ab7Copy full SHA for 8a60ab7
inst/include/Rcpp/NAComparator.h
@@ -27,18 +27,14 @@ namespace Rcpp{
27
28
inline bool Rcpp_IsNA(double x) {
29
return memcmp(
30
- &x,
31
- &NA_REAL,
+ (void*) &x,
+ (void*) &NA_REAL,
32
sizeof(double)
33
) == 0;
34
}
35
36
inline bool Rcpp_IsNaN(double x) {
37
- return memcmp(
38
39
- &R_NaN,
40
- sizeof(double)
41
- ) == 0;
+ return R_IsNaN(x);
42
43
44
inline int StrCmp(SEXP x, SEXP y) {
0 commit comments