Skip to content
Commit 447c6f93 authored by Olof Johansson's avatar Olof Johansson Committed by Takashi Iwai
Browse files

ALSA: control: remove compilation warning on 32-bit



This was introduced by 'ALSA: control: add support for ENUMERATED user
space controls' which adds a u64 variable that gets cast to a pointer:

sound/core/control.c: In function 'snd_ctl_elem_init_enum_names':
sound/core/control.c:1089: warning: cast to pointer from integer of different size

Cast to uintptr_t before casting to pointer to avoid the warning.

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
[cl: replace long with uintptr_t]
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 862a6244
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment