diff --git a/src/iconv_file.cc b/src/iconv_file.cc index ddb8bcda..35c01685 100644 --- a/src/iconv_file.cc +++ b/src/iconv_file.cc @@ -1,4 +1,5 @@ #include +#include #include #include "R_ext/Riconv.h" @@ -23,8 +24,8 @@ size_t insize = 0; void* cd; - bool should_close_in = !isOpen(in_con); - bool should_close_out = !isOpen(out_con); + bool should_close_in = !cpp11::as_cpp(isOpen(in_con)); + bool should_close_out = !cpp11::as_cpp(isOpen(out_con)); if (should_close_in) { open(in_con, "rb");