Skip to content

Commit e22d04d

Browse files
Fix for #502
1 parent 5d2d8ea commit e22d04d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

inst/include/Rcpp/algorithm.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace helpers {
4545

4646
#ifdef RCPP_HAS_LONG_LONG_TYPES
4747
template<>
48-
struct ctype_helper< sizeof(CTYPE_LONG_LONG) > { typedef long long type; static const bool value = true; };
48+
struct ctype_helper< sizeof(CTYPE_LONG_LONG) > { typedef rcpp_long_long_type type; static const bool value = true; };
4949
#endif
5050

5151
template<>
@@ -74,7 +74,7 @@ namespace helpers {
7474

7575
#ifdef RCPP_HAS_LONG_LONG_TYPES
7676
template<>
77-
struct ctype_helper< sizeof(CTYPE_UNSIGNED_LONG_LONG) > { typedef unsigned long long type; static const bool value = true; };
77+
struct ctype_helper< sizeof(CTYPE_UNSIGNED_LONG_LONG) > { typedef rcpp_ulong_long_type type; static const bool value = true; };
7878
#endif
7979

8080

@@ -86,7 +86,7 @@ namespace helpers {
8686
static CTYPE_INT test(const int &);
8787
static CTYPE_LONG test(const long &);
8888
#ifdef RCPP_HAS_LONG_LONG_TYPES
89-
static CTYPE_LONG_LONG test(const long long &);
89+
static CTYPE_LONG_LONG test(const rcpp_long_long_type &);
9090
#endif
9191
static CTYPE_FLOAT test(const float &);
9292
static CTYPE_DOUBLE test(const double &);
@@ -97,7 +97,7 @@ namespace helpers {
9797
static CTYPE_UNSIGNED_INT test(const unsigned int &);
9898
static CTYPE_UNSIGNED_LONG test(const unsigned long &);
9999
#ifdef RCPP_HAS_LONG_LONG_TYPES
100-
static CTYPE_UNSIGNED_LONG_LONG test(const unsigned long long &);
100+
static CTYPE_UNSIGNED_LONG_LONG test(const rcpp_ulong_long_type &);
101101
#endif
102102
static CTYPE_UNKNOWN test(...);
103103

@@ -114,7 +114,7 @@ namespace helpers {
114114
static CTYPE_INT test(const int &);
115115
static CTYPE_LONG test(const long &);
116116
#ifdef RCPP_HAS_LONG_LONG_TYPES
117-
static CTYPE_LONG_LONG test(const long long &);
117+
static CTYPE_LONG_LONG test(const rcpp_long_long_type &);
118118
#endif
119119
static CTYPE_FLOAT test(const float &);
120120
static CTYPE_DOUBLE test(const double &);
@@ -125,7 +125,7 @@ namespace helpers {
125125
static CTYPE_UNSIGNED_INT test(const unsigned int &);
126126
static CTYPE_UNSIGNED_LONG test(const unsigned long &);
127127
#ifdef RCPP_HAS_LONG_LONG_TYPES
128-
static CTYPE_UNSIGNED_LONG_LONG test(const unsigned long long &);
128+
static CTYPE_UNSIGNED_LONG_LONG test(const rcpp_ulong_long_type &);
129129
#endif
130130
static CTYPE_UNKNOWN test(...);
131131

0 commit comments

Comments
 (0)