From bb719a757ce81fb20dd52fba362f45c57fddec9b Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Sat, 1 Jun 2024 08:31:47 -0500 Subject: [PATCH] Another 'clang++-17 -Wconversion -Wsign-conversion' --- ChangeLog | 5 +++++ inst/include/Rcpp/internal/Proxy_Iterator.h | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a6c13fe62..de4d950c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-06-01 Dirk Eddelbuettel + + * inst/include/Rcpp/internal/Proxy_Iterator.h (Proxy_Iterator): + Switch to R_xlen_t ('clang++-17 -Wconversion -Wno-sign-conversion') + 2024-05-28 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Roll micro version diff --git a/inst/include/Rcpp/internal/Proxy_Iterator.h b/inst/include/Rcpp/internal/Proxy_Iterator.h index bc94f112b..6ba891765 100644 --- a/inst/include/Rcpp/internal/Proxy_Iterator.h +++ b/inst/include/Rcpp/internal/Proxy_Iterator.h @@ -1,6 +1,4 @@ -// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*- -/* :tabSize=4:indentSize=4:noTabs=false:folding=explicit:collapseFolds=1: */ -// + // Proxy_Iterator.h: Rcpp R/C++ interface class library -- // // Copyright (C) 2010 - 2013 Dirk Eddelbuettel and Romain Francois @@ -31,7 +29,7 @@ class Proxy_Iterator { public: typedef PROXY& reference ; typedef PROXY* pointer ; - typedef int difference_type ; + typedef R_xlen_t difference_type ; typedef PROXY value_type; typedef std::random_access_iterator_tag iterator_category ; @@ -122,4 +120,3 @@ class Proxy_Iterator { } #endif -