Skip to content

Commit 8057b04

Browse files
committed
Avoid a narrowing warning via explicit cast
1 parent 79ba459 commit 8057b04

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-09-04 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/include/Rcpp/internal/wrap.h (make_charsexp__impl__cstring):
4+
Avoid a narrowing warning by casting explicitly
5+
16
2025-08-26 Dirk Eddelbuettel <[email protected]>
27

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

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)