A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[sonar] Put parentheses around macro parameters.
[simgrid.git]
/
teshsuite
/
xbt
/
mmalloc
/
mmalloc_test.cpp
diff --git
a/teshsuite/xbt/mmalloc/mmalloc_test.cpp
b/teshsuite/xbt/mmalloc/mmalloc_test.cpp
index
9b11df4
..
9217257
100644
(file)
--- a/
teshsuite/xbt/mmalloc/mmalloc_test.cpp
+++ b/
teshsuite/xbt/mmalloc/mmalloc_test.cpp
@@
-20,7
+20,7
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"this test");
constexpr int BUFFSIZE = 204800;
constexpr int TESTSIZE = 100;
-#define size_of_block(i) (((
i % 50)+1)
* 100)
+#define size_of_block(i) (((
(i) % 50) + 1)
* 100)
static void check_block(const unsigned char* p, unsigned char b, int n)
{