tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] tiny bit of lint


From: grischka
Subject: Re: [Tinycc-devel] tiny bit of lint
Date: Tue, 09 May 2017 10:26:06 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

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



reply via email to

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