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:
d730cd0
)
fixed bug in creation of dynamic classes
author
kramm
<kramm>
Tue, 30 Dec 2008 23:00:07 +0000
(23:00 +0000)
committer
kramm
<kramm>
Tue, 30 Dec 2008 23:00:07 +0000
(23:00 +0000)
lib/as3/parser.y
patch
|
blob
|
history
diff --git
a/lib/as3/parser.y
b/lib/as3/parser.y
index
9940fa5
..
19c878b
100644
(file)
--- a/
lib/as3/parser.y
+++ b/
lib/as3/parser.y
@@
-903,6
+903,8
@@
code_t*converttype(code_t*c, classinfo_t*from, classinfo_t*to)
}
if(TYPE_IS_FUNCTION(from) && TYPE_IS_FUNCTION(to))
return c;
+ if(TYPE_IS_CLASS(from) && TYPE_IS_CLASS(to))
+ return c;
syntaxerror("can't convert type %s to %s", from->name, to->name);
}