Skip to content

Commit 9261bae

Browse files
committed
fix a compile error due to non-ascii chars; minor whitespace edits too
1 parent 859438f commit 9261bae

File tree

1 file changed

+1
-6
lines changed
  • inst/include/Rcpp/api/meat

1 file changed

+1
-6
lines changed

inst/include/Rcpp/api/meat/is.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,18 @@ namespace internal{
3030
SEXP dim = Rf_getAttrib( x, R_DimSymbol) ;
3131
return dim != R_NilValue && Rf_length(dim) == 2 ;
3232
}
33-
3433
template <> inline bool is__simple<int>( SEXP x ){
3534
return is_atomic(x) && TYPEOF(x) == INTSXP ;
3635
}
37-
3836
template <> inline bool is__simple<double>( SEXP x ){
3937
return is_atomic(x) && TYPEOF(x) == REALSXP ;
4038
}
41-
4239
template <> inline bool is__simple<bool>( SEXP x ){
4340
return is_atomic(x) && TYPEOF(x) == LGLSXP ;
4441
}
45-
4642
template <> inline bool is__simple<std::string>( SEXP x ){
4743
return is_atomic(x) && TYPEOF(x) == STRSXP ;
4844
}
49-
5045
template <> inline bool is__simple<String>( SEXP x ){
5146
return is_atomic(x) && TYPEOF(x) == STRSXP ;
5247
}
@@ -78,7 +73,7 @@ namespace internal{
7873
return TYPEOF(x) == LANGSXP ;
7974
}
8075
template <> inline bool is__simple<DottedPair>( SEXP x ){
81-
return TYPEOF(x) == LANGSXP || TYPEOF(x) == LISTSXP ;
76+
return (TYPEOF(x) == LANGSXP) || (TYPEOF(x) == LISTSXP);
8277
}
8378
template <> inline bool is__simple<List>( SEXP x ){
8479
return TYPEOF(x) == VECSXP ;

0 commit comments

Comments
 (0)