Skip to content

Commit

Permalink
Reduce objects in ason_type
Browse files Browse the repository at this point in the history
ason_type would report strange results because it did not reduce before it
checked the type. Problem corrected.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
  • Loading branch information
sadmac7000 committed Oct 11, 2014
1 parent 178360f commit 253b0f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/value.c
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,7 @@ ason_check_equal(ason_t *a, ason_t *b)
API_EXPORT ason_type_t
ason_type(ason_t *a)
{
ason_reduce(a);
return a->type;
}

Expand Down

0 comments on commit 253b0f4

Please sign in to comment.