fix compile error under MinGW
This commit is contained in:
parent
578294dbdd
commit
2bd6a4795a
|
@ -121,12 +121,12 @@ int nand_calculate_ecc(struct nand_device *nand, const uint8_t *dat, uint8_t *ec
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int countbits(uint32_t byte)
|
static inline int countbits(uint32_t b)
|
||||||
{
|
{
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
for (;byte; byte >>= 1)
|
for (;b; b >>= 1)
|
||||||
res += byte & 0x01;
|
res += b & 0x01;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue