We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012d5a9 commit 6414323Copy full SHA for 6414323
ChangeLog
@@ -1,3 +1,7 @@
1
+2014-05-18 Kevin Ushey <kevinushey@gmail.com>
2
+
3
+ * inst/include/Rcpp/vector/Vector.h: Safer casting to fix #146
4
5
2014-05-10 Dirk Eddelbuettel <edd@debian.org>
6
7
* R/Attributes.R (compileAttributes): Read Imports: as well
inst/include/Rcpp/vector/Vector.h
@@ -941,7 +941,9 @@ class Vector :
941
// anything else
942
template <typename T>
943
inline void assign_object( const T& x, traits::false_type ) {
944
- Storage::set__( r_cast<RTYPE>( wrap(x) ) ) ;
+ Shield<SEXP> wrapped(wrap(x));
945
+ Shield<SEXP> casted(r_cast<RTYPE>(wrapped));
946
+ Storage::set__(casted);
947
}
948
949
// we are importing a real sugar expression, i.e. not a vector
0 commit comments