]> git.alsa-project.org Git - tinycompress.git/commit
cplay: add parentheses around comparison in operand of ‘&’
authorVinod Koul <vkoul@kernel.org>
Thu, 13 Oct 2022 12:45:54 +0000 (18:15 +0530)
committerVinod Koul <3178504+vinodkoul@users.noreply.github.com>
Thu, 13 Oct 2022 15:34:19 +0000 (21:04 +0530)
commitf3ba6e5c2126f2fb07e3d890f990d50c3e204e67
treed06a9e0e7b03fd7d9c2be412eb56cda4df7f4e32
parentf1e2d285ffde3c26dbe83641f67714f92e3e165a
cplay: add parentheses around comparison in operand of ‘&’

We get a warning:
cplay.c: In function ‘find_adts_header’:
cplay.c:259:41: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
  259 |         if ((buf[0] != 0xff) || (buf[1] & 0xf0 != 0xf0))

Resolve by adding a parentheses around "&" case

Signed-off-by: Vinod Koul <vkoul@kernel.org>
src/utils/cplay.c