diff --git a/observer_agent/service/main.cpp b/observer_agent/service/main.cpp index 940cf83c08f59e783a99e5b95e6bca20c0850c08..f177645ad19d0af655cfde2eec19ea496f0e62e5 100644 --- a/observer_agent/service/main.cpp +++ b/observer_agent/service/main.cpp @@ -51,7 +51,7 @@ static bool power_of_2(unsigned int num) { if (num == 0) return false; - if (num & (num - 1) != 0) + if ((num & (num - 1)) != 0) return false; return true; }