mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-11-04 00:53:12 +03:00
Fix implicit-int-conversion warning in exslt/crypto.c
This commit is contained in:
@@ -101,7 +101,7 @@ exsltCryptoHex2Bin (const unsigned char *hex, int hexlen,
|
|||||||
else if (tmp >= 'a' && tmp <= 'f')
|
else if (tmp >= 'a' && tmp <= 'f')
|
||||||
lo = 10 + (tmp - 'a');
|
lo = 10 + (tmp - 'a');
|
||||||
|
|
||||||
result = hi << 4;
|
result = (unsigned char) (hi << 4);
|
||||||
result += lo;
|
result += lo;
|
||||||
bin[j++] = result;
|
bin[j++] = result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user