aboutsummaryrefslogtreecommitdiff
path: root/src/actualize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actualize.c')
-rw-r--r--src/actualize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actualize.c b/src/actualize.c
index a846d10..dae9cd9 100644
--- a/src/actualize.c
+++ b/src/actualize.c
@@ -390,7 +390,7 @@ static int copy_var(bool public, struct scope *to, struct ast *def)
static int copy_symbols(bool public, struct scope *to, struct scope *from)
{
foreach(exported, n, &from->exported_symbols) {
- struct ast *def = *n;
+ struct ast *def = n->data;
switch (def->k) {
case AST_PROC_DEF:
if (copy_proc(public, to, def))
@@ -499,7 +499,7 @@ static int copy_chain(bool public, struct scope *to, struct ast *def)
static int copy_types(bool public, struct scope *to, struct scope *from)
{
foreach(exported, n, &from->exported_types) {
- struct ast *def = *n;
+ struct ast *def = n->data;
switch (def->k) {
case AST_STRUCT_DEF:
if (copy_type(public, to, def, struct_id(def)))
@@ -538,7 +538,7 @@ static int copy_types(bool public, struct scope *to, struct scope *from)
static int copy_macros(bool public, struct scope *to, struct scope *from)
{
foreach(exported, n, &from->exported_macros) {
- struct ast *def = *n;
+ struct ast *def = n->data;
struct ast *exists = file_scope_find_macro(to, macro_def_id(def));
if (!exists) {