From 5afd348e72ad142d5865d4e5d5b19178e360b551 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Tue, 9 Jan 2024 17:24:25 -0800 Subject: [PATCH] Change format specifier --- NEWS.md | 4 ++++ src/unicode_fopen.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index a23532fd..a9dd9d75 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,9 @@ # readr (development version) +* No major user-facing changes. Patch release with housekeeping changes and + internal changes requested by CRAN around format specification in compiled + code. + # readr 2.1.4 * No user-facing changes. Patch release with internal changes requested by CRAN. diff --git a/src/unicode_fopen.h b/src/unicode_fopen.h index 483bc7de..9fd8aeab 100644 --- a/src/unicode_fopen.h +++ b/src/unicode_fopen.h @@ -34,7 +34,7 @@ inline FILE* unicode_fopen(const char* path, const char* mode) { } buf = (wchar_t*)R_alloc(len, sizeof(wchar_t)); if (buf == NULL) { - Rf_error("Could not allocate buffer of size: %ll", len); + Rf_error("Could not allocate buffer of size: %zu", len); } MultiByteToWideChar(CP_UTF8, 0, path, -1, buf, len); @@ -56,7 +56,7 @@ make_mmap_source(const char* file, std::error_code& error) { } buf = (wchar_t*)malloc(len * sizeof(wchar_t)); if (buf == NULL) { - Rf_error("Could not allocate buffer of size: %ll", len); + Rf_error("Could not allocate buffer of size: %zu", len); } MultiByteToWideChar(CP_UTF8, 0, file, -1, buf, len);