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
965965 } else {
966966 fprintf(op, "LIBRARY %s\n\nEXPORTS\n", dllname);
967967 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]);
969969 }
970970 #endif
971971
tcctools.c+1−1
@@ -390,7 +390,7 @@ usage: · 389 unmodified lines
390390 }
391391
392392 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]);
394394
395395 ret = 0;
396396

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