commit | c52439a6f40b3f2fe6b7e68a51b4a7c8bbfdc854 | [log] [tgz] |
---|---|---|
author | Morten Priess <mtpr@oticon.com> | Tue Jun 26 14:46:55 2018 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Jun 27 03:58:36 2018 -0400 |
tree | 158862e0acbe0f739cc27c8176308859fb5df5ab | |
parent | 3efd2693b3a4ebea003353e2091e52fbdf7edaa8 [diff] |
tests: ztest: fixed off-by-one in sys_bitfield_find_first_clear Calling __builtin_ffsl(neg_bitmap) returns first bit set in the word, e.g. 4 if bitmap is 11111000. As this must translate to zero-based index 3, one must be subtracted from the result. Signed-off-by: Morten Priess <mtpr@oticon.com>