]> git.alsa-project.org Git - alsa-lib.git/commit
topology: Not compare a for loop iterator with ABI __le32 variables
authorMengdong Lin <mengdong.lin@linux.intel.com>
Thu, 19 Nov 2015 08:33:05 +0000 (03:33 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Nov 2015 09:17:36 +0000 (10:17 +0100)
commitcde9a37c06a09e890d2c4b175bd548ed6f247f93
tree841d51534032b0a34f414bb1c0d455ce841d8a62
parent8504a41d9424456f2cdca058d036eb42c195ee52
topology: Not compare a for loop iterator with ABI __le32 variables

The iterator 'i' in a loop is a usually a integer. But ABI variables use
type _le32, which is converted to host unsigned integer. Comparing them
can cause gcc warning: comparison between signed and unsigned integer
expressions[-Wsign-compare].

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/ctl.c
src/topology/pcm.c