[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: include: Avoid overflow (warning) in RGBA_MAKE.
From:       Gerald Pfeifer <gerald () pfeifer ! com>
Date:       2017-02-26 22:22:55
Message-ID: alpine.LSU.2.20.1702262322150.2487 () anthias ! pfeifer ! com
[Download RAW message or body]

On Sun, 26 Feb 2017, Henri Verbeet wrote:
> > > > > -#define RGBA_MAKE(r, g, b, a)   ((D3DCOLOR) (((a) << 24) | ((r) << 16) | \
> > > > > ((g) << 8) | (b))) +#define RGBA_MAKE(r, g, b, a)   ((D3DCOLOR) \
> > > > > (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)))
> Commit 060ea15ae2c1604d51d3df1460e99c7d6e6211cf should have avoided the 
> issue.

Yes, indeed, that looks like it.  Thank you, Henri!

Gerald


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic