Skip to content

Commit

Permalink
Fix: enumeration not inferred properly
Browse files Browse the repository at this point in the history
  • Loading branch information
positively-charged committed May 5, 2017
1 parent c4e7d4c commit d8216e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/semantic/dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,7 @@ static void assign_inferred_type( struct semantic* semantic, struct var* var,
s_take_type_snapshot( type, &snapshot );
var->ref = snapshot.ref;
var->structure = snapshot.structure;
var->enumeration = snapshot.enumeration;
var->dim = snapshot.dim;
var->spec = snapshot.spec;
}
Expand Down

0 comments on commit d8216e3

Please sign in to comment.