mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 22:10:17 +01:00
macros: fix nm_utils_is_power_of_two() for const arguments
This commit is contained in:
parent
b1453fc7ef
commit
07759d7584
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ nm_clear_g_cancellable (GCancellable **cancellable)
|
|||
* For negative @x, always returns FALSE. That only applies, if the data
|
||||
* type of @x is signed. */
|
||||
#define nm_utils_is_power_of_two(x) ({ \
|
||||
const typeof(x) __x = (x); \
|
||||
typeof(x) __x = (x); \
|
||||
\
|
||||
/* Check if the value is negative. In that case, return FALSE.
|
||||
* The first expression is a compile time constant, depending on whether
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue