mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix 32bit bit fields handling. This fixes card serial number fetching.
It was just a cosmetic issue, because that number is only reported in logs. Reported by: Michael Butler on current@
This commit is contained in:
parent
44e46b9e53
commit
8b09b5b170
1 changed files with 1 additions and 1 deletions
|
|
@ -749,7 +749,7 @@ mmc_get_bits(uint32_t *bits, int bit_len, int start, int size)
|
|||
uint32_t retval = bits[i] >> shift;
|
||||
if (size + shift > 32)
|
||||
retval |= bits[i - 1] << (32 - shift);
|
||||
return (retval & ((1 << size) - 1));
|
||||
return (retval & ((1llu << size) - 1));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue