Skip to content

Commit 0674784

Browse files
committed
#5476 follow up thanks @MichaelChirico: redundant ternary in error string construction, and comment
1 parent 4a540f4 commit 0674784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,10 +1294,10 @@ int freadMain(freadMainArgs _args) {
12941294
strcmp(ch,"True")==0 || strcmp(ch,"False")==0)
12951295
STOP(_("freadMain: NAstring <<%s>> is recognized as type boolean, this is not permitted."), ch);
12961296
if ((strcmp(ch,"1")==0 || strcmp(ch,"0")==0) && args.logical01)
1297-
STOP(_("freadMain: NAstring <<%s>> and logical01=%s, this is not permitted."), ch, args.logical01 ? "TRUE" : "FALSE");
1297+
STOP(_("freadMain: NAstring <<%s>> and logical01=TRUE, this is not permitted."), ch);
12981298
char *end;
12991299
errno = 0;
1300-
(void)strtod(ch, &end); // careful not to let "" get to here (see continue above) as strtod considers "" numeric
1300+
(void)strtod(ch, &end); // careful not to let "" get to here as strtod considers "" numeric
13011301
if (errno==0 && (size_t)(end - ch) == nchar) any_number_like_NAstrings = true;
13021302
}
13031303
nastr++;

0 commit comments

Comments
 (0)