From ed453457ad73c30197d08c0dde392c4e58abc187 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Tue, 20 Jan 2026 12:40:27 -0600 Subject: [PATCH] Correct a printf format string reflecting 'unsigned int' --- ChangeLog | 5 +++++ inst/include/Rcpp/date_datetime/Datetime.h | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c982a2570..dd5ecfd41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2026-01-20 Dirk Eddelbuettel + + * inst/include/Rcpp/date_datetime/Datetime.h (format): Correct a + format string reflecting 'unsigned int' rather than 'int' + 2026-01-12 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Roll micro version and date diff --git a/inst/include/Rcpp/date_datetime/Datetime.h b/inst/include/Rcpp/date_datetime/Datetime.h index e7d9ff00b..d4e4c9d59 100644 --- a/inst/include/Rcpp/date_datetime/Datetime.h +++ b/inst/include/Rcpp/date_datetime/Datetime.h @@ -1,8 +1,7 @@ -// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- -// + // Datetime.h: Rcpp R/C++ interface class library -- Datetime (POSIXct) // -// Copyright (C) 2010 - 2016 Dirk Eddelbuettel and Romain Francois +// Copyright (C) 2010 - 2026 Dirk Eddelbuettel and Romain Francois // // This file is part of Rcpp. // @@ -80,7 +79,7 @@ namespace Rcpp { if (res == 0) { return std::string(""); } else { - res = ::snprintf(txtsec, 63, "%s.%06d", txtiso, m_us); + res = ::snprintf(txtsec, 63, "%s.%06u", txtiso, m_us); if (res <= 0) { return std::string(""); } else {