* src/cksum.c (main):
* src/df.c (decode_output_arg):
* src/digest.c (valid_digits):
Prefer idx_t to unsigned types when the value is an index
into an array.
uint32_t crc = 0;
crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ (i & 0xFF)) & 0xFF];
- for (unsigned int offset = 1; offset < 8; offset++)
+ for (idx_t offset = 1; offset < 8; offset++)
{
crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ 0x00) & 0xFF];
crctab[offset][i] = crc;
/* process S. */
display_field_t field = INVALID_FIELD;
- for (unsigned int i = 0; i < ARRAY_CARDINALITY (field_data); i++)
+ for (idx_t i = 0; i < ARRAY_CARDINALITY (field_data); i++)
{
if (STREQ (field_data[i].arg, s))
{
#endif
if (len == digest_hex_bytes)
{
- for (unsigned int i = 0; i < digest_hex_bytes; i++)
+ for (idx_t i = 0; i < digest_hex_bytes; i++)
{
if (!isxdigit (*s))
return false;