[Top][All Lists]

[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 <

And that is wrong of course.

     $ tcc examples/dll.c -shared -v
     ---> crash

-- gr

Tinycc-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]