[GIT] ppl/ppl(master): Enclose macro argument in parentheses.

Module: ppl/ppl Branch: master Commit: f26f9957b54a3e328e9dd9562cf95ec96f503058 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=f26f9957b54a3...
Author: Roberto Bagnara bagnara@cs.unipr.it Date: Thu Feb 23 19:59:13 2012 +0100
Enclose macro argument in parentheses. Detected by ECLAIR service macrbody.
---
src/compiler.hh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/compiler.hh b/src/compiler.hh index 1ee7a9b..0aa3e85 100644 --- a/src/compiler.hh +++ b/src/compiler.hh @@ -77,7 +77,8 @@ struct Suppress_Uninitialized_Warnings_Type { type name #endif
-#define sizeof_to_bits(size) (size * static_caststd::size_t(CHAR_BIT)) +#define sizeof_to_bits(size) \ + ((size) * static_caststd::size_t(CHAR_BIT))
#if !defined(__GNUC__)
participants (1)
-
Roberto Bagnara