diff options
author | Max <msuraev@sysmocom.de> | 2018-01-26 18:49:39 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-19 08:33:04 +0000 |
commit | 735e435e8ef40dd1a68581858d1bc39bd8898c63 (patch) | |
tree | a719e2ca8837f1262401c13d96e422fb9ad25de3 /src | |
parent | 5b22fb7953c39edaaf672384a48bee33970f49f6 (diff) |
Use explicit type for pcu_lsb()
It's only used for byte-long input so we can specify input and output
types explicitly.
Change-Id: Id0bef691e17e4331c7c4b491661e36173d85388a
Diffstat (limited to 'src')
-rw-r--r-- | src/pcu_utils.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pcu_utils.h b/src/pcu_utils.h index 767771c3..32924528 100644 --- a/src/pcu_utils.h +++ b/src/pcu_utils.h @@ -44,8 +44,7 @@ inline unsigned int pcu_bitcount(T x) return count; } -template <typename T> -inline T pcu_lsb(T x) +inline uint8_t pcu_lsb(uint8_t x) { return x & -x; } |