Added cast to get rid of compile warning.

This commit is contained in:
skarg
2006-01-06 13:20:32 +00:00
parent 2a9cea02be
commit a7aeb6d7a2
+1 -1
View File
@@ -596,7 +596,7 @@ int decode_bitstring(uint8_t * apdu, uint32_t len_value,
len = 1;
for (i = 0; i < bytes_used; i++)
{
bitstring_set_octet(bit_string, i, byte_reverse_bits(apdu[len++]));
bitstring_set_octet(bit_string, (uint8_t)i, byte_reverse_bits(apdu[len++]));
}
unused_bits = apdu[0] & 0x07;
bitstring_set_bits_used(bit_string,