summaryrefslogtreecommitdiff
path: root/offsets.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-12-31 17:31:58 -0500
committerSøren Sandmann <sandmann@redhat.com>2007-12-31 17:31:58 -0500
commit656c6f339d2fa57987b8c9d8e3f028c5aeba73e4 (patch)
tree9d55c96a4fb4a53e30433bb0e60c14b767549f99 /offsets.c
parentf0b51be0f1d4535c323925df5b505c02b4faad8a (diff)
Remove symbol tables from statement expressions
Diffstat (limited to 'offsets.c')
-rw-r--r--offsets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/offsets.c b/offsets.c
index 919a0d6..901e60d 100644
--- a/offsets.c
+++ b/offsets.c
@@ -71,9 +71,9 @@ do_offsets (ast_t *ast, int offset, int level, int *max)
{
symbols = ast->statement.block.symbol_table;
}
- else if (ast_is (ast, AST_EXPRESSION, AST_STATEMENT_EXPRESSION))
+ else if (ast_is (ast, AST_EXPRESSION, AST_BLOCK_EXPRESSION))
{
- symbols = ast->expression.statement.symbol_table;
+ symbols = ast->expression.block.symbol_table;
}
else if (ast_is (ast, AST_DEFINITION, AST_CLASS_DEFINITION))
{