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:
Christian Menard 2014-11-17 18:18:29 +03:00 committed by Christian Helmuth
parent 2583aa2ab4
commit eedddeced1

View File

@ -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");