Skip to content

Commit 8637de0

Browse files
unsigned int -> double to handle unsigned int > INT_MAX
1 parent a450fc4 commit 8637de0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2013-09-19 Romain Francois <romain@r-enthusiasts.com>
2+
3+
* include/Rcpp/traits/r_sexptype_traits.h : unsigned int wrapped as REALSXP
4+
long standing feature request from Murray.
5+
16
2013-09-18 JJ Allaire <jj@rstudio.org>
27

38
* R/Attributes.R: Don't search the inline package as a fallback when loading plugins for the the Rcpp::plugins attribute
@@ -5408,3 +5413,4 @@
54085413

54095414
* inst/doc/RcppAPI.{Rnw,pdf}: Added footnote onto titlepage about how
54105415
this document has not (yet) been updated along with the channges made
5416+

inst/include/Rcpp/traits/r_sexptype_traits.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// r_sexptype_traits.h: Rcpp R/C++ interface class library -- traits to help wrap
55
//
6-
// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
6+
// Copyright (C) 2010 - 2013 Dirk Eddelbuettel and Romain Francois
77
//
88
// This file is part of Rcpp.
99
//
@@ -40,7 +40,8 @@ template<> struct r_sexptype_traits<std::string>{ enum{ rtype = STRSXP } ; } ;
4040
template<> struct r_sexptype_traits<Rcomplex>{ enum{ rtype = CPLXSXP } ; } ;
4141
template<> struct r_sexptype_traits<Rbyte>{ enum{ rtype = RAWSXP } ; } ;
4242

43-
template<> struct r_sexptype_traits<unsigned int>{ enum{ rtype = INTSXP } ; } ;
43+
44+
template<> struct r_sexptype_traits<unsigned int>{ enum{ rtype = REALSXP } ; } ;
4445
template<> struct r_sexptype_traits<float>{ enum{ rtype = REALSXP } ; } ;
4546

4647
/* long are represented as numeric vectors which allows more precision

0 commit comments

Comments
 (0)