Skip to content

Commit ed45345

Browse files
committed
Correct a printf format string reflecting 'unsigned int'
1 parent b96082e commit ed45345

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2026-01-20 Dirk Eddelbuettel <edd@debian.org>
2+
3+
* inst/include/Rcpp/date_datetime/Datetime.h (format): Correct a
4+
format string reflecting 'unsigned int' rather than 'int'
5+
16
2026-01-12 Dirk Eddelbuettel <edd@debian.org>
27

38
* DESCRIPTION (Version, Date): Roll micro version and date

inst/include/Rcpp/date_datetime/Datetime.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2-
//
1+
32
// Datetime.h: Rcpp R/C++ interface class library -- Datetime (POSIXct)
43
//
5-
// Copyright (C) 2010 - 2016 Dirk Eddelbuettel and Romain Francois
4+
// Copyright (C) 2010 - 2026 Dirk Eddelbuettel and Romain Francois
65
//
76
// This file is part of Rcpp.
87
//
@@ -80,7 +79,7 @@ namespace Rcpp {
8079
if (res == 0) {
8180
return std::string("");
8281
} else {
83-
res = ::snprintf(txtsec, 63, "%s.%06d", txtiso, m_us);
82+
res = ::snprintf(txtsec, 63, "%s.%06u", txtiso, m_us);
8483
if (res <= 0) {
8584
return std::string("");
8685
} else {

0 commit comments

Comments
 (0)