diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-22 16:48:01 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-22 16:48:01 +0100 |
commit | a3e1e9918745d2a1cf921d7b13b94ffcc45d50fe (patch) | |
tree | 18ffe118a420380928c78e8e5f2f0d5577d240d9 /api_test/main.c | |
parent | 1cf1ec9a8f893a41910a300d9d8f1e6c20288287 (diff) |
Fix hierarchy test
Diffstat (limited to 'api_test/main.c')
-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); |