From 07759d7584889c0b7f2a3cb21d5ebca713efdf05 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 4 Dec 2015 16:57:38 +0100 Subject: [PATCH] macros: fix nm_utils_is_power_of_two() for const arguments --- include/nm-macros-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nm-macros-internal.h b/include/nm-macros-internal.h index 03bc53e5ce..a4698417f8 100644 --- a/include/nm-macros-internal.h +++ b/include/nm-macros-internal.h @@ -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