mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-04 01:40:09 -05:00
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>
This commit is contained in:
parent
8504a41d94
commit
cde9a37c06
2 changed files with 13 additions and 13 deletions
|
|
@ -550,7 +550,7 @@ int tplg_add_pcm_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t)
|
|||
}
|
||||
|
||||
pcm->num_streams = pcm_tpl->num_streams;
|
||||
for (i = 0; i < pcm->num_streams; i++)
|
||||
for (i = 0; i < pcm_tpl->num_streams; i++)
|
||||
tplg_add_stream_object(&pcm->stream[i], &pcm_tpl->stream[i]);
|
||||
|
||||
return 0;
|
||||
|
|
@ -583,7 +583,7 @@ int tplg_add_link_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t)
|
|||
lk->id = link->id;
|
||||
lk->num_streams = link->num_streams;
|
||||
|
||||
for (i = 0; i < lk->num_streams; i++)
|
||||
for (i = 0; i < link->num_streams; i++)
|
||||
tplg_add_stream_object(&lk->stream[i], &link->stream[i]);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue