Skip to content

Commit 0dc6a10

Browse files
authored
Avoid a narrowing warning via explicit cast (#1398)
* Avoid a narrowing warning via explicit cast * Roll micro version and date, update NEWS
1 parent 79ba459 commit 0dc6a10

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2025-09-04 Dirk Eddelbuettel <[email protected]>
2+
3+
* DESCRIPTION (Version, Date): Roll micro version and date
4+
* inst/include/Rcpp/config.h: Idem
5+
6+
* inst/include/Rcpp/internal/wrap.h (make_charsexp__impl__cstring):
7+
Avoid a narrowing warning by casting explicitly
8+
19
2025-08-26 Dirk Eddelbuettel <[email protected]>
210

311
* inst/tinytest/test_sugar.R: For r-devel, use apply(x, DIM, mean,

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 1.1.0.2
4-
Date: 2025-07-20
3+
Version: 1.1.0.3
4+
Date: 2025-09-04
55
Authors@R: c(person("Dirk", "Eddelbuettel", role = c("aut", "cre"), email = "[email protected]",
66
comment = c(ORCID = "0000-0001-6419-907X")),
77
person("Romain", "Francois", role = "aut",

inst/NEWS.Rd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55

66
\section{Changes in Rcpp release version 1.1.1 (2026-01-xx)}{
77
\itemize{
8+
\item Changes in Rcpp API:
9+
\itemize{
10+
\item An unused old R function for a compiler version check has been
11+
removed after checking no known package uses it (Dirk in \ghpr{1395})
12+
\item A narrowing warning is avoided via a cast (Dirk in \ghpr{1398})
13+
}
814
\item Changes in Rcpp Documentation:
915
\itemize{
1016
\item Vignettes are now processed via a new "asis" processor adopted
1117
from \pkg{R.rsp} (Dirk in \ghpr{1394} fixing \ghit{1393})
18+
\item R is now cited via its DOI (Dirk)
1219
}
1320
}
1421
}

inst/include/Rcpp/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define RCPP_VERSION_STRING "1.1.0"
3232

3333
// the current source snapshot (using four components, if a fifth is used in DESCRIPTION we ignore it)
34-
#define RCPP_DEV_VERSION RcppDevVersion(1,1,0,2)
35-
#define RCPP_DEV_VERSION_STRING "1.1.0.2"
34+
#define RCPP_DEV_VERSION RcppDevVersion(1,1,0,3)
35+
#define RCPP_DEV_VERSION_STRING "1.1.0.3"
3636

3737
#endif

inst/include/Rcpp/internal/wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace Rcpp {
6868

6969
#if __cplusplus >= 201703L
7070
inline SEXP make_charsexp__impl__cstring(std::string_view st) {
71-
return Rf_mkCharLen(st.data(), st.size());
71+
return Rf_mkCharLen(st.data(), static_cast<int>(st.size()));
7272
}
7373
#endif
7474

0 commit comments

Comments
 (0)