Hi,

I tested vs, it's same.
It's not bug.


Thks!


------------------ ???????? ------------------
??????:                                                                         
                                               "tinycc-devel"                   
                                                                 
<m...@vr5.epicgamer.org&gt;;
????????:&nbsp;2022??6??9??(??????) ????0:48
??????:&nbsp;"tinycc-devel"<tinycc-devel@nongnu.org&gt;;

????:&nbsp;Re: [Tinycc-devel] ?????? bug



Hello,

On 6/8/22 6:26 PM, Brian Callahan wrote:
&gt; On 6/8/2022 11:12 AM, lrt wrote:
&gt;&gt; int main(int argc, char **argv)
&gt;&gt; {
&gt;&gt; printf("Hello!\n");
&gt;&gt; //uint64_t n = 0xffffffff;
&gt;&gt; //printf("%lld\n", n);
&gt;&gt; printf("%lld\n", 0xffff);
&gt;&gt; printf("%llu\n", 0xffff);
&gt;&gt; return 0;
&gt;&gt; }
&gt;&gt; output:
&gt;&gt; Hello!
&gt;&gt; 247414872441159679
&gt;&gt; 247414872441159679
&gt;&gt;
&gt;&gt; Remove comments??different result.
&gt; You were already told once by Kyryl to update your TCC version or let us
&gt; know what platform and TCC version you're using. You still haven't done
&gt; either. It is impossible to help you without more information, though
&gt; Kyryl's suggestion of update your version of TCC is almost certainly the
&gt; correct one. (Alternatively, did you write your own libc and get printf
&gt; format string handling totally wrong?)
&gt; 
&gt; It would be near unbelievable if TCC couldn't correctly handle such a
&gt; simple program. But of course, it does.

It's the same problem as in previous test case - format
is for long long but the value passed is long.

So it's not a problem with tcc.

BTW, 247414872441159679 = 0x36efe840000ffff


Vad

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to