parse number values write in a hex string in obxprop
This commit is contained in:
parent
013df404a8
commit
dd623f5b2f
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ gint parse_hex(gchar *s) {
|
||||||
if (*s >= '0' && *s <='9')
|
if (*s >= '0' && *s <='9')
|
||||||
add = *s-'0';
|
add = *s-'0';
|
||||||
else if (*s >= 'A' && *s <='F')
|
else if (*s >= 'A' && *s <='F')
|
||||||
add = *s-'A';
|
add = *s-'A'+10;
|
||||||
else if (*s >= 'a' && *s <='f')
|
else if (*s >= 'a' && *s <='f')
|
||||||
add = *s-'a';
|
add = *s-'a'+10;
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue