Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Please codacy (operator precedence).
[simgrid.git] / examples / msg / app-bittorrent / messages.c
index d4c7c2b..c353692 100644 (file)
@@ -9,7 +9,7 @@
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_messages, "Messages specific for the message factory");
 
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_messages, "Messages specific for the message factory");
 
-#define BITS_TO_BYTES(x) ((x / 8) + (x % 8) ? 1 : 0)
+#define BITS_TO_BYTES(x) (((x) / 8 + (x) % 8) ? 1 : 0)
 
 /** @brief Build a new empty message
  * @param type type of the message
 
 /** @brief Build a new empty message
  * @param type type of the message