Problem is that how you print 64-bit numbers varies. %llu doesn't always work (for example the Windoze buildbot is now red). Instead the PRI*64 macros should be used.
Sebastien Tandel wrote: > checked in rev 21975. Thanks! > > Regards, > Sebastien Tandel > > On 24 May 2007, at 09:47, David Howells wrote: > >> Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an >> >> x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat >> >> 4.1.2-8). >> >> >> The failures fall into two categories: >> >> >> (1) Casts between pointers and 32-bit integers without an >> intermediary cast >> >> via 'long' or 'unsigned long'. This results in a compiler warning >> >> complaining about casts between a pointer and an integer of a >> different >> >> size. >> >> >> (2) Passing values to "%lld" or similar printf-style format options >> that the >> >> compiler thinks are a different size. Such values need to be cast to >> >> 'long long' or 'unsigned long long'. >> > > Regards, > Sebastien Tandel > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Wireshark-dev mailing list > [email protected] > http://www.wireshark.org/mailman/listinfo/wireshark-dev _______________________________________________ Wireshark-dev mailing list [email protected] http://www.wireshark.org/mailman/listinfo/wireshark-dev
