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 72f368e commit 7e0218cCopy full SHA for 7e0218c
ChangeLog
@@ -1,3 +1,8 @@
1
+2014-05-28 Kevin Ushey <kevinushey@gmail.com>
2
+
3
+ * inst/include/Rcpp/vector/vector_from_string.h: Protect result of
4
+ Rf_mkString
5
6
2014-05-23 Dirk Eddelbuettel <edd@debian.org>
7
8
* R/Module.R (new_dummyObject): Remove erraneous quotes
inst/include/Rcpp/vector/vector_from_string.h
@@ -27,7 +27,8 @@ namespace internal{
27
28
template <int RTYPE>
29
inline SEXP vector_from_string( const std::string& st ) {
30
- return r_cast<RTYPE>( Rf_mkString( st.c_str() ) ) ;
+ Shield<SEXP> str(Rf_mkString(st.c_str()));
31
+ return r_cast<RTYPE>(str) ;
32
}
33
34
0 commit comments