Permalink
Browse files

fix typo in property parser

  • Loading branch information...
1 parent 6f7ccd9 commit 4181d7ac1b41739963b0dfb4dcfe40f042e026f6 @tmiw committed Dec 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/parser/kite-parser.ypp
@@ -418,7 +418,7 @@ destructor_definition: DESTRUCT optional_docstring '[' input ']' {
property_definition: optional_global PROPERTY SYMBOL_NAME optional_docstring {
$<opValue>$ = new kite::semantics::syntax_tree(@$);
$<opValue>$->op = kite::semantics::PROP_ASSIGN;
- $<opValue>$->is_global = $<intValue>$;
+ $<opValue>$->is_global = $<intValue>1;
kite::semantics::syntax_tree deref_filter(@$);
deref_filter.op = kite::semantics::DEREF_FILTER;
@@ -444,7 +444,7 @@ property_definition: optional_global PROPERTY SYMBOL_NAME optional_docstring
| optional_global PROPERTY SYMBOL_NAME optional_docstring '=' data_manipulation_statement {
$<opValue>$ = new kite::semantics::syntax_tree(@$);
$<opValue>$->op = kite::semantics::PROP_ASSIGN;
- $<opValue>$->is_global = $<intValue>$;
+ $<opValue>$->is_global = true;
kite::semantics::syntax_tree deref_filter(@$);
deref_filter.op = kite::semantics::DEREF_FILTER;

0 comments on commit 4181d7a

Please sign in to comment.