]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - yy/mp.y
string: Introduce arr_alloc().
[paraslash.git] / yy / mp.y
diff --git a/yy/mp.y b/yy/mp.y
index f94d2408979fa90d22464f47eb9e0dbb9f0b2d8c..8df4f20ea04ebd2ea23b77ad77451e23e0022dbc 100644 (file)
--- a/yy/mp.y
+++ b/yy/mp.y
@@ -86,7 +86,7 @@ static struct mp_ast_node *ast_node_new_binary(int id, struct mp_ast_node *left,
 {
        struct mp_ast_node *node = ast_node_raw(id);
        node->num_children = 2;
-       node->children = alloc(2 * sizeof(struct mp_ast_node *));
+       node->children = arr_alloc(2, sizeof(struct mp_ast_node *));
        node->children[0] = left;
        node->children[1] = right;
        return node;