From 05b5d8547f5f98ca4b907bf6a21564e2384740a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 15 Feb 2019 18:09:00 +0100 Subject: Improve FOR macro. --- trie.inc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'trie.inc.h') diff --git a/trie.inc.h b/trie.inc.h index c03cee22..3ac9acac 100644 --- a/trie.inc.h +++ b/trie.inc.h @@ -137,7 +137,8 @@ FMT_F(TRIE_NODE(TYPE)) { if (n == NULL) { fmtf("\n"); } while (n != NULL) { fmtf("|"); - FOR(int, i, depth) fmtf(" "); + // FOR(int, i, depth) fmtf(" "); + for (int i = 0; i < depth; i++) fmtf(" "); fmtf("%c ", n->c == '\0' ? '0' : n->c); if (n->value != NULL) { seek += FMT(TYPE)(n->value, buf + seek); -- cgit v1.2.3