[Rcpp-commits] r4518 - in pkg/Rcpp: . inst/include/Rcpp/traits

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Sep 19 09:08:31 CEST 2013


Author: romain
Date: 2013-09-19 09:08:31 +0200 (Thu, 19 Sep 2013)
New Revision: 4518

Modified:
   pkg/Rcpp/ChangeLog
   pkg/Rcpp/inst/include/Rcpp/traits/r_sexptype_traits.h
Log:
unsigned int -> double to handle unsigned int > INT_MAX

Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog	2013-09-19 01:41:10 UTC (rev 4517)
+++ pkg/Rcpp/ChangeLog	2013-09-19 07:08:31 UTC (rev 4518)
@@ -1,3 +1,8 @@
+2013-09-19 Romain Francois <romain at r-enthusiasts.com>
+
+        * include/Rcpp/traits/r_sexptype_traits.h : unsigned int wrapped as REALSXP
+        long standing feature request from Murray. 
+
 2013-09-18  JJ Allaire  <jj at rstudio.org>
 
         * 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 @@
 
         * inst/doc/RcppAPI.{Rnw,pdf}: Added footnote onto titlepage about how
           this document has not (yet) been updated along with the channges made
+

Modified: pkg/Rcpp/inst/include/Rcpp/traits/r_sexptype_traits.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/traits/r_sexptype_traits.h	2013-09-19 01:41:10 UTC (rev 4517)
+++ pkg/Rcpp/inst/include/Rcpp/traits/r_sexptype_traits.h	2013-09-19 07:08:31 UTC (rev 4518)
@@ -3,7 +3,7 @@
 //
 // r_sexptype_traits.h: Rcpp R/C++ interface class library -- traits to help wrap
 //
-// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
+// Copyright (C) 2010 - 2013 Dirk Eddelbuettel and Romain Francois
 //
 // This file is part of Rcpp.
 //
@@ -40,7 +40,8 @@
 template<> struct r_sexptype_traits<Rcomplex>{ enum{ rtype = CPLXSXP } ; } ;
 template<> struct r_sexptype_traits<Rbyte>{ enum{ rtype = RAWSXP } ; } ;
 
-template<> struct r_sexptype_traits<unsigned int>{ enum{ rtype = INTSXP } ; } ;
+
+template<> struct r_sexptype_traits<unsigned int>{ enum{ rtype = REALSXP } ; } ;
 template<> struct r_sexptype_traits<float>{ enum{ rtype = REALSXP } ; } ;
 
 /* long are represented as numeric vectors which allows more precision 



More information about the Rcpp-commits mailing list