Skip to content

Commit

Permalink
silence warnings on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Dec 11, 2023
1 parent d04ba0c commit 5cda1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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 Down

0 comments on commit 5cda1fa

Please sign in to comment.