Skip to content

Commit

Permalink
Change format specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Jan 10, 2024
1 parent eda42c4 commit 5afd348
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/unicode_fopen.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 5afd348

Please sign in to comment.