mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
udev: fix hex decoding
This commit is contained in:
parent
f26c849efc
commit
1552abf628
1 changed files with 2 additions and 2 deletions
|
|
@ -63,10 +63,10 @@ static int dehex(char x) {
|
|||
return x - '0';
|
||||
|
||||
if (x >= 'A' && x <= 'F')
|
||||
return x - 'A';
|
||||
return x - 'A' + 10;
|
||||
|
||||
if (x >= 'a' && x <= 'f')
|
||||
return x - 'a';
|
||||
return x - 'a' + 10;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue