Skip to content

Commit c3c2a04

Browse files
authored
Try another format string (#423)
1 parent 41eb990 commit c3c2a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xml2_output.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int xml_write_callback(SEXP con, const char * buffer, int len) {
9292
size_t write_size;
9393

9494
if ((write_size = R_WriteConnection(con, (void *) buffer, len)) != static_cast<size_t>(len)) {
95-
Rf_error("write failed, expected %i, got %li", len, write_size);
95+
Rf_error("write failed, expected %i, got %zu", len, write_size);
9696
}
9797
return write_size;
9898
}

0 commit comments

Comments
 (0)