summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-13 10:25:54 +0200
committerTyge Løvset <[email protected]>2021-09-13 10:25:54 +0200
commitc8df06eba131d607660af4381d0d800d639f6279 (patch)
tree2f3e28f508726860b39499b3b25f7988dbd71853
parentfa2871406affad4d96a54554f80c7418a716b98c (diff)
downloadSTC-modified-c8df06eba131d607660af4381d0d800d639f6279.tar.gz
STC-modified-c8df06eba131d607660af4381d0d800d639f6279.zip
Very minor formatting.
-rw-r--r--examples/birthday.c2
-rw-r--r--include/stc/ccommon.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/birthday.c b/examples/birthday.c
index 62f39fb2..d2630911 100644
--- a/examples/birthday.c
+++ b/examples/birthday.c
@@ -24,7 +24,7 @@ static void test_repeats(void)
c_forrange (i, N) {
uint64_t k = stc64_rand(&rng) & mask;
int v = cmap_ic_emplace(&m, k, 0).ref->second += 1;
- if (v > 1) printf("repeated value %llx (%d) at 2^%d\n", k, v, (int) log2(i));
+ if (v > 1) printf("repeated value %zu (%d) at 2^%d\n", k, v, (int) log2(i));
}
}
}
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index b4679998..a64bff40 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -53,10 +53,10 @@
/* Macro overloading feature support based on: https://rextester.com/ONP80107 */
#define c_MACRO_OVERLOAD(name, ...) \
- c_PASTE3(name, _, c_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__)
-#define c_CONCAT(a, b) a##b
+ c_PASTE3(name, _, c_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__)
+#define c_CONCAT(a, b) a ## b
#define c_PASTE(a, b) c_CONCAT(a, b)
-#define c_CONCAT3(a, b, c) a##b##c
+#define c_CONCAT3(a, b, c) a ## b ## c
#define c_PASTE3(a, b, c) c_CONCAT3(a, b, c)
#define c_EXPAND(...) __VA_ARGS__
#define c_NUM_ARGS(...) _c_APPLY_ARG_N((__VA_ARGS__, _c_RSEQ_N))