[alsa-devel] [PATCH 5/5] ASoC: sh/fsi: Make one-bit bitfields unsigned

Mark Brown broonie at kernel.org
Sat Jun 21 22:02:28 CEST 2014


On Thu, Jun 19, 2014 at 09:40:31AM +0200, Lars-Peter Clausen wrote:
> One-bit signed bitfields have two possible values: 0 and -1. This sometimes
> leads to unexpected results (e.g. foo.bar = 1; foo.bar == 1 => false) which is
> why it is recommended to make one-bit bitfields unsigned.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140621/13e9a432/attachment.sig>


More information about the Alsa-devel mailing list