Skip to content

Commit 0afd468

Browse files
committed
make linterse happy
1 parent 78bce0e commit 0afd468

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

R/fread.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,13 @@ yaml=FALSE, tmpdir=tempdir(), tz="UTC")
9393
connection_spill_info = NULL
9494
if (input_is_con) {
9595
if (verbose) {
96-
catf("[00] Spill connection to tempfile\n")
97-
catf(" Connection class: %s\n", paste(class(input), collapse=", "))
98-
catf(" Reading connection into RAM buffer... ")
96+
catf("[00] Spill connection to tempfile\n Connection class: %s\n Reading connection into RAM buffer... ", toString(class(input)))
9997
flush.console()
10098
}
10199
spill_started.at = proc.time()
102100
con_summary = summary(input)
103101
con_desc = con_summary$description
104-
con_class = class(input)[1L]
102+
con_class = class1(input)
105103
con_open = isOpen(input)
106104

107105
needs_reopen = FALSE

src/freadR.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ SEXP spillConnectionToFile(SEXP connection, SEXP tempfile_path, SEXP nrows_limit
780780

781781
// Read and write in chunks // TODO tune chunk size
782782
size_t chunk_size = 256 * 1024;
783-
char *buffer = (char *)malloc(chunk_size);
783+
char *buffer = malloc(chunk_size);
784784
if (buffer == NULL) {
785785
fclose(outfile);
786786
STOP(_("spillConnectionToFile: failed to allocate buffer"));

0 commit comments

Comments
 (0)