dde_linux: fix bug in find_next_zero_bit_le
value '1' has a default type of int, but long is needed to cover all 64 bits
This commit is contained in:
parent
2583aa2ab4
commit
eedddeced1
|
@ -838,7 +838,7 @@ long find_next_zero_bit_le(const void *addr,
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; offset < max_size; offset++)
|
for (; offset < max_size; offset++)
|
||||||
if (!(*(unsigned long*)addr & (1 << offset)))
|
if (!(*(unsigned long*)addr & (1L << offset)))
|
||||||
return offset;
|
return offset;
|
||||||
|
|
||||||
PERR("No zero bit findable");
|
PERR("No zero bit findable");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user