diff options
Diffstat (limited to 'api_test')
-rw-r--r-- | api_test/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |