From 168749f18a998c52b5771d946c3dd2c7362cbf17 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Tue, 9 Jan 2024 16:29:49 -0800 Subject: [PATCH] Change this format specifier --- src/unicode_fopen.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);