lang: fix lots of compiler warnings/errors
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
#include "ctx.h"
|
||||
#include "node.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
static void print(struct ivy_ast_node *node)
|
||||
{
|
||||
struct ivy_ast_double_node *v = (struct ivy_ast_double_node *)node;
|
||||
|
||||
printf("%s (%.2lf)\n", ivy_ast_node_type_to_string(node->n_type), v->n_value->t_double);
|
||||
printf("%s (%.2lf)\n", ivy_ast_node_type_to_string(node->n_type),
|
||||
v->n_value->t_double);
|
||||
}
|
||||
|
||||
struct ast_node_type double_node_ops = {
|
||||
|
||||
Reference in New Issue
Block a user