History

Touch up previous "s"[i<2] patch

The real equivalence is between the original "s" + (i<2) and &"s"[i<2].

Larry Doolittle committed 9 years ago

Commit 3f5fd301 parent 3c0a7382 files · +2 −2Browse files

Unified · Split

2 files
  1. tccpe.c +1 −1
  2. tcctools.c +1 −1
tccpe.c+1−1
@@ -965,7 +965,7 @@ static void pe_build_exports(struct pe_info *pe) · 964 unmodified lines
965 } else {965 } else {
966 fprintf(op, "LIBRARY %s\n\nEXPORTS\n", dllname);966 fprintf(op, "LIBRARY %s\n\nEXPORTS\n", dllname);
967 if (pe->s1->verbose)967 if (pe->s1->verbose)
968 printf("<- %s (%d symbol%s)\n", buf, sym_count, "s"[sym_count < 2]);968 printf("<- %s (%d symbol%s)\n", buf, sym_count, &"s"[sym_count < 2]);
969 }969 }
970#endif970#endif
971 971
tcctools.c+1−1
@@ -390,7 +390,7 @@ usage: · 389 unmodified lines
390 }390 }
391 391
392 if (v)392 if (v)
393 printf("<- %s (%d symbol%s)\n", outfile, i, "s"[i<2]);393 printf("<- %s (%d symbol%s)\n", outfile, i, &"s"[i<2]);
394 394
395 ret = 0;395 ret = 0;
396 396

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t