git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3405ac6
)
fixed segfault in ok/interface.as
author
kramm
<kramm>
Fri, 2 Jan 2009 19:50:55 +0000
(19:50 +0000)
committer
kramm
<kramm>
Fri, 2 Jan 2009 19:50:55 +0000
(19:50 +0000)
lib/as3/parser.y
patch
|
blob
|
history
diff --git
a/lib/as3/parser.y
b/lib/as3/parser.y
index
6e1c2be
..
1364b0e
100644
(file)
--- a/
lib/as3/parser.y
+++ b/
lib/as3/parser.y
@@
-876,7
+876,12
@@
static void endfunction(token_t*ns, int flags, enum yytokentype getset, char*nam
}
}
check_code_for_break(body);
- f->body->code = body;
+
+ if(f->body)
+ f->body->code = body;
+ else //interface
+ if(body)
+ syntaxerror("interface methods can't have a method body");
old_state();
}