Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: grumpy
Title: Read 'NumPy' '.npy' and '.npz' Files
Version: 0.1.1.9000
Version: 0.1.1.9001
Authors@R: c(
person("Hugo", "Gruson", , "hugo.gruson+R@normalesup.org", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0002-4094-1476")),
Expand Down
4 changes: 2 additions & 2 deletions src/type_conversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ SEXP type_convert_string(SEXP input, SEXP _n_bytes) {
// We cannot do one without the other as strings may not be NUL terminated (truncated) and
// mkCharLenCE complains about NUL characters in the string.
if (len > (size_t)n_bytes)
SET_STRING_ELT(data, i, mkCharLenCE(field, n_bytes, CE_BYTES));
SET_STRING_ELT(data, i, mkCharLenCE(field, n_bytes, CE_NATIVE));
else
SET_STRING_ELT(data, i, mkCharCE(field, CE_BYTES));
SET_STRING_ELT(data, i, mkCharCE(field, CE_NATIVE));
}

UNPROTECT(1);
Expand Down
Loading