File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed
Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1+ 2013-12-20 Kevin Ushey <kevinushey@gmail.com>
2+
3+ * inst/include/Rcpp/RObject.h: Add missing *this return for
4+ RObject_impl::operator=
5+
6+ 2013-12-20 Dirk Eddelbuettel <edd@debian.org>
7+
8+ * inst/include/Rcpp/RObject.h: Applied fix by Kevin Ushey (#88)
9+ * inst/include/Rcpp/vector/Vector.h: Ditto (#89)
10+
1112013-12-01 Kevin Ushey <kevinushey@gmail.com>
212
313 * R/Rcpp.package.skeleton.R: Fixed bug relating to user-supplied
Original file line number Diff line number Diff line change 1919 \item The internal coercion mechanism mapping numerics to strings has
2020 been updated to better match \R (specifically with \code {Inf }, \code {- Inf },
2121 and \code {NaN }. )
22+ \item Applied two bug fixes to Vector \code {sort()} and \code {RObject }
23+ definition spotted and correct by Kevin Ushey
2224 }
2325 \item Changes in Rcpp documentation :
2426 \itemize {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ namespace Rcpp{
3030 /* *
3131 * default constructor. uses R_NilValue
3232 */
33- RObject_Impl () ;
33+ RObject_Impl () {} ;
3434
3535 RCPP_GENERATE_CTOR_ASSIGN (RObject_Impl)
3636
@@ -47,7 +47,8 @@ namespace Rcpp{
4747 * Assignement operator. Set this SEXP to the given SEXP
4848 */
4949 RObject_Impl& operator =( SEXP other ){
50- Storage::set__ (other) ;
50+ Storage::set__ (other) ;
51+ return *this ;
5152 }
5253
5354 void update (SEXP){}
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ class Vector :
239239 }
240240
241241 Vector& sort (){
242- typename traits::storage_type<RTYPE>* start = internal::r_vector_start<RTYPE>( Storage::get__ () ) ;
242+ typename traits::storage_type<RTYPE>::type * start = internal::r_vector_start<RTYPE>( Storage::get__ () ) ;
243243 std::sort (
244244 start, start + size (),
245245 typename traits::comparator_type<RTYPE>::type ()
You can’t perform that action at this time.
0 commit comments