[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] tiny bit of lint
From: |
Christian Jullien |
Subject: |
Re: [Tinycc-devel] tiny bit of lint |
Date: |
Tue, 9 May 2017 11:49:23 +0200 |
Arf! You're right.
That why I never fix warning in a code which is not mine.
My fix proposal is definitively better.
-----Original Message-----
From: Tinycc-devel [mailto:address@hidden
On Behalf Of grischka
Sent: mardi 9 mai 2017 10:26
To: address@hidden
Subject: Re: [Tinycc-devel] tiny bit of lint
Larry Doolittle wrote:
@@ -965,7 +965,7 @@ static void pe_build_exports(struct pe_info *pe)
} else {
fprintf(op, "LIBRARY %s\n\nEXPORTS\n", dllname);
if (pe->s1->verbose)
- printf("<- %s (%d symbol%s)\n", buf, sym_count, "s" +
(sym_count < 2));
+ printf("<- %s (%d symbol%s)\n", buf, sym_count, "s"[sym_count <
2]);
}
#endif
And that is wrong of course.
$ tcc examples/dll.c -shared -v
---> crash
-- gr
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
- [Tinycc-devel] tiny bit of lint, Larry Doolittle, 2017/05/07
- Re: [Tinycc-devel] tiny bit of lint, Michael Matz, 2017/05/07
- Re: [Tinycc-devel] tiny bit of lint, Larry Doolittle, 2017/05/08
- Re: [Tinycc-devel] tiny bit of lint, grischka, 2017/05/08
- Re: [Tinycc-devel] tiny bit of lint, Larry Doolittle, 2017/05/08
- Re: [Tinycc-devel] tiny bit of lint, Christian Jullien, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, grischka, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint,
Christian Jullien <=
- Re: [Tinycc-devel] tiny bit of lint, Larry Doolittle, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, Christian Jullien, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, grischka, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, Christian Jullien, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, Larry Doolittle, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, grischka, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, Christian Jullien, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, Larry Doolittle, 2017/05/09
- Re: [Tinycc-devel] tiny bit of lint, grischka, 2017/05/09
Re: [Tinycc-devel] tiny bit of lint, Christian Jullien, 2017/05/08