Re: [webkit-dev] Reminder: be careful when printing sized integer types

2017-05-11 Thread Yusuke SUZUKI
Or, alternative way is casting the value to `unsigned long long` and always using %llu for uint64_t. uint64_t value = ...; printf("%llu", (unsigned long long)value); Regards, Yusuke Suzuki On Wed, May 10, 2017 at 4:07 AM, Michael Catanzaro wrote: > Hi, > > This is just a reminder to avoid a ca

[webkit-dev] Reminder: be careful when printing sized integer types

2017-05-09 Thread Michael Catanzaro
Hi, This is just a reminder to avoid a case that occasionally causes warnings for GTK+. On Mac, uint64_t is (I assume) a typedef for unsigned long long. But on Linux 86_64 it's a typedef for unsigned long. This means they have to be printed differently. Using "%llu" to print a uint64_t (presu