ogg.k.ogg.k at googlemail.com
2008-May-20 09:56 UTC
[ogg-dev] [PATCH] liboggplay - 64 bit fixes
as subject says - cast to long long as ogg_int64_t is %ld on 64 bit archs. -------------- next part -------------- A non-text attachment was scrubbed... Name: liboggplay-64bit.diff Type: text/x-patch Size: 2109 bytes Desc: not available Url : http://lists.xiph.org/pipermail/ogg-dev/attachments/20080520/04b7a838/attachment.bin
ogg.k.ogg.k at googlemail.com wrote:> printf("[%d] [duration %lld] %s\n",I believe that the right (ie ISO C standard recommended) way of doing this is: printf("[%d] [duration %" PRId64 "] %s\n", which will be correct on 32 and 64 bit systems without requiring a cast. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- Laws of Thermodynamics: 1) You cannot win. 2) You cannot break even. 3) You cannot get out of the game.
ogg.k.ogg.k at googlemail.com
2008-May-20 11:25 UTC
[ogg-dev] [PATCH] liboggplay - 64 bit fixes
> I believe that the right (ie ISO C standard recommended) way of doing > this is: > > printf("[%d] [duration %" PRId64 "] %s\n",C99 only, and ugly as hell (well, subjective, but I have trouble reading those). I can post an updated patch using this instead if preferred ?