mono / libgdiplus

C-based implementation of the GDI+ API
http://www.mono-project.com/
MIT License
329 stars 171 forks source link

bitmap.c:1338: bad compare ? #659

Open dcb314 opened 4 years ago

dcb314 commented 4 years ago

bitmap.c:1338:22: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

Source code is

   if ((src & 0xff00) == 16 || (dest & 0xff00) == 16) {

Anything masked with 0xff00 will never equal 16. Suggest code rework.