mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-11 13:22:33 +00:00
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++)
|
||||
if (!(*(unsigned long*)addr & (1 << offset)))
|
||||
if (!(*(unsigned long*)addr & (1L << offset)))
|
||||
return offset;
|
||||
|
||||
PERR("No zero bit findable");
|
||||
|
Loading…
x
Reference in New Issue
Block a user