[MPlayer-dev-eng] Re: [PATCH] unrarlib.h 64bits fix

Alban Bedel albeu at free.fr
Sat Mar 18 17:07:14 CET 2006


On Sat, 18 Mar 2006 16:37:52 +0100
"Guillaume POIRIER" <poirierg at gmail.com> wrote:

> Hi,
> 
> On 3/18/06, Alban Bedel <albeu at free.fr> wrote:
> > On Sat, 18 Mar 2006 15:51:48 +0100
> > "Guillaume POIRIER" <poirierg at gmail.com> wrote:
> >
> > > Hi,
> > >
> > > On 3/18/06, ybastide <ybastide at wanadoo.fr> wrote:
> > > > unrarlib.h declares 32 bits UDWORD as unsigned long. This breaks
> > > > the CRC check.
> > >
> > >   #ifdef _UNIX                                /* LINUX/UNIX
> > >   #definitions       */
> > >   typedef unsigned char    UBYTE;
> > >   typedef unsigned short   UWORD;
> > > -typedef unsigned long    UDWORD;
> > > +typedef unsigned int     UDWORD;
> > >   #endif
> > >
> > > This patch seems so logical and straightforward that I'm really
> > > tempted to apply it right away.... but the existing definition
> > > seems so stupid to me that I can't quite imagine anyone writhing
> > > such a thing.
> > >
> > > ... so I'll way one day before committing it unless someone else
> > > think it got to be applied right now.
> >
> > What about converting those to uint[8|16|32]_t and getting rid of
> > the pb once and for all ?
> 
> Fine with me. What's more, it'll make this file easier to read as
> it'll use "more standard" types.
> 

I didn't meant changing the whole file, just typedef as in the attached
patch.

	Albeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unrarlib.diff
Type: application/octet-stream
Size: 856 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060318/49ecbc7b/attachment.obj>


More information about the MPlayer-dev-eng mailing list