]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix cast warning
authorTakashi Iwai <tiwai@suse.de>
Fri, 6 Jun 2008 14:58:02 +0000 (16:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Jun 2008 14:58:02 +0000 (16:58 +0200)
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 <tiwai@suse.de>
src/control/control_ext.c

index dbe13092fc701f9edc6de8dae12df15492bc7c5b..28bd49d397b6bc1c86baa627a69772a40980ecab 100644 (file)
@@ -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)