On 5/3/2013 10:05, Jim Michaels wrote:
> 
> sorry, my yahoo mail can only top-post, so don't email me about that. still 
> investigating this problem.
> 
> when I try 
> 
> #include <cstdio>
> #include <stdint.h>
> int main(void) {
>     int64_t maxi=0x7fffffffffffffffLL;
>     int64_t mini=0xffffffffffffffffLL;
>     //__int128   i=0x7fffffffffffffffffffffffffffffff;//gives error
>     printf("0x7fffffffffffffffLL=%I64d\n", maxi);//gives warning about int
>     printf("0xffffffffffffffffLL=%I64d\n", mini);//gives warning about int
>     //printf("0x7fffffffffffffffffffffffffffffff=%I128d\n", i); //gives error
>     return 0;
> }
> 
> 
> I64.cpp:7:48: warning: format '%d' expects argument of type 'int', but 
> argument 2 has type 'int64_t {aka long long int}' [-Wformat=]                 
>                                                                               
>                                      I64.cpp:8:48: warning: format '%d' 
> expects argument of type 'int', but argument 2 has type 'int64_t {aka long 
> long int}' [-Wformat=]
> 
> %I64d does not completely work for me without warnings.
> 

If you use -D__MINGW_USE_ANSI_STDIO=1, use %lld.
If you DO NOT USE -D__MINGW_USE_ANSI_STDIO=1, use %I64d.

There is no 128bit print yet.


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to