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
This commit is contained in:
Max 2018-01-26 18:49:39 +01:00 committed by Harald Welte
parent 5b22fb7953
commit 735e435e8e
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}