mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 03:55:41 +01:00
Fixed sign
This commit is contained in:
parent
7d75ba2c1b
commit
7b2cc96f18
1 changed files with 2 additions and 2 deletions
|
@ -300,10 +300,10 @@ static int get_control(snd_ctl_t *handle, snd_ctl_element_id_t *id, snd_config_t
|
||||||
{
|
{
|
||||||
size_t size = type == SND_CTL_ELEMENT_TYPE_BYTES ?
|
size_t size = type == SND_CTL_ELEMENT_TYPE_BYTES ?
|
||||||
count : sizeof(snd_aes_iec958_t);
|
count : sizeof(snd_aes_iec958_t);
|
||||||
char buf[count * 2 + 1];
|
char buf[size * 2 + 1];
|
||||||
char *p = buf;
|
char *p = buf;
|
||||||
char *hex = "0123456789abcdef";
|
char *hex = "0123456789abcdef";
|
||||||
const char *bytes = snd_ctl_element_get_bytes(ctl);
|
const unsigned char *bytes = snd_ctl_element_get_bytes(ctl);
|
||||||
for (idx = 0; idx < size; idx++) {
|
for (idx = 0; idx < size; idx++) {
|
||||||
int v = bytes[idx];
|
int v = bytes[idx];
|
||||||
*p++ = hex[v >> 4];
|
*p++ = hex[v >> 4];
|
||||||
|
|
Loading…
Reference in a new issue