From fce17b8c47f3c07ccf7277f9c229699204f23a0a Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 6 Jun 2008 16:58:02 +0200 Subject: [PATCH] Fix cast warning int64_t and long long isn't strictly identical, and thus gcc gives us a heartful warning. Suppress the warning by a pointer cast. Signed-off-by: Takashi Iwai --- src/control/control_ext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/control/control_ext.c b/src/control/control_ext.c index dbe13092..28bd49d3 100644 --- a/src/control/control_ext.c +++ b/src/control/control_ext.c @@ -217,7 +217,8 @@ static int snd_ctl_ext_elem_read(snd_ctl_t *handle, snd_ctl_elem_value_t *contro case SND_CTL_ELEM_TYPE_INTEGER64: if (! ext->callback->read_integer64) goto err; - ret = ext->callback->read_integer64(ext, key, control->value.integer64.value); + ret = ext->callback->read_integer64(ext, key, + (int64_t*)control->value.integer64.value); break; case SND_CTL_ELEM_TYPE_ENUMERATED: if (! ext->callback->read_enumerated) -- 2.47.1