[MPlayer-dev-eng] libmpdemux/cache2.c: correct format strings given _FILE_OFFSET_BITS

a.guru at sympatico.ca a.guru at sympatico.ca
Wed Aug 17 12:52:34 CEST 2005


* On Tuesday 2005-08-16 at 20:58:47 -0400, Rich Felker wrote:
> On Wed, Aug 17, 2005 at 12:46:31AM +0200, Reimar Döffinger wrote:
> > Quite a bit of code, with quite a risk of breaking on some OS and in
> > a header where it doesn't really belong.
> > What does everyone else think?
> 
> I'm in favor of always casting to (u?)int64_t.

Cool.

I don't think off_t is ever unsigned.

POSIX for <sys/types.h> says:

   DESCRIPTION
      off_t
         Used for file sizes.

      All of the types shall be defined as
      arithmetic types of an appropriate length, ...

      Additionally:
         blkcnt_t and off_t shall be signed integer types.




More information about the MPlayer-dev-eng mailing list