Skip to content

Commit 024a34d

Browse files
minor operator ws change
1 parent 7fb8738 commit 024a34d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fwrite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,9 @@ void fwriteMain(fwriteMainArgs args)
647647
// could be console output) and writing column names to it.
648648

649649
double t0 = wallclock();
650-
size_t maxLineLen = eolLen + args.ncol * (2 * (doQuote!=0) + sepLen);
650+
size_t maxLineLen = eolLen + args.ncol * (2*(doQuote!=0) + sepLen);
651651
if (args.doRowNames) {
652-
maxLineLen += args.rowNames==NULL ? 1 + (int) log10(args.nrow) // the width of the row number
652+
maxLineLen += args.rowNames==NULL ? 1 + (int)log10(args.nrow) // the width of the row number
653653
: (args.rowNameFun==WF_String ? getMaxStringLen(args.rowNames, args.nrow) * 2 // *2 in case longest row name is all quotes (!) and all get escaped
654654
: 11); // specific integer names could be MAX_INT 2147483647 (10 chars) even on a 5 row table, and data.frame allows negative integer rownames hence 11 for the sign
655655
maxLineLen += 2/*possible quotes*/ + sepLen;

0 commit comments

Comments
 (0)