From 0ba97b9416404f7fa40331c2425d0e04f7d5f775 Mon Sep 17 00:00:00 2001 From: jwellbelove Date: Thu, 26 Jan 2017 08:52:01 +0000 Subject: [PATCH] Fixed compile error in 'first_clear_bit_position' --- src/binary.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/binary.h b/src/binary.h index c1243140..9ca9cfce 100644 --- a/src/binary.h +++ b/src/binary.h @@ -755,7 +755,7 @@ namespace etl template uint_least8_t first_clear_bit_position(T value) { - value ~= value; + value = ~value; return count_trailing_zeros(value); } @@ -768,7 +768,7 @@ namespace etl { if (!state) { - value ~= value; + value = ~value; } return count_trailing_zeros(value);