From a3e1e9918745d2a1cf921d7b13b94ffcc45d50fe Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 22 Nov 2014 16:48:01 +0100 Subject: Fix hierarchy test --- api_test/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api_test') diff --git a/api_test/main.c b/api_test/main.c index 35570e9..da9e241 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -428,7 +428,7 @@ test_content(test_batch_runner *runner, cmark_node_type type, cmark_node *child = cmark_node_new(child_type); int got = cmark_node_append_child(node, child); - int expected = (allowed_content >> i) & 1; + int expected = (allowed_content >> child_type) & 1; INT_EQ(runner, got, expected, "add %d as child of %d", child_type, type); -- cgit v1.2.3