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:
1f0a5e0
)
fixed segfault in float printing
author
kramm
<kramm>
Fri, 19 Dec 2008 07:59:24 +0000
(07:59 +0000)
committer
kramm
<kramm>
Fri, 19 Dec 2008 07:59:24 +0000
(07:59 +0000)
lib/as3/pool.c
patch
|
blob
|
history
lib/as3/pool.h
patch
|
blob
|
history
diff --git
a/lib/as3/pool.c
b/lib/as3/pool.c
index
59fc2e3
..
6ce37d3
100644
(file)
--- a/
lib/as3/pool.c
+++ b/
lib/as3/pool.c
@@
-720,7
+720,7
@@
char* constant_tostring(constant_t*c)
{
if(!c)
return 0;
- char buf[30];
+ char buf[32];
if(NS_TYPE(c->type)) {
return namespace_tostring(c->ns);
} else if(c->type == CONSTANT_INT) {
@@
-730,6
+730,7
@@
char* constant_tostring(constant_t*c)
sprintf(buf, "%u", c->u);
return strdup(buf);
} else if(c->type == CONSTANT_FLOAT) {
+ char buf[1024];
sprintf(buf, "%f", c->f);
return strdup(buf);
} else if(c->type == CONSTANT_STRING) {
@@
-836,9
+837,6
@@
int pool_register_multiname(pool_t*pool, multiname_t*n)
{
if(!n) return 0;
int pos = array_append_if_new(pool->x_multinames, n, 0);
- if(pos==0) {
- *(int*)0=0xdead;
- }
assert(pos!=0);
return pos;
}
diff --git
a/lib/as3/pool.h
b/lib/as3/pool.h
index
19efb2b
..
6fa1326
100644
(file)
--- a/
lib/as3/pool.h
+++ b/
lib/as3/pool.h
@@
-55,7
+55,8
@@
typedef enum access_type
ACCESS_PROTECTED=0x18,
ACCESS_EXPLICIT=0x19,
ACCESS_STATICPROTECTED=0x1a,
- ACCESS_PRIVATE=0x05
+ ACCESS_PRIVATE=0x05,
+ ACCESS_NAMESPACE=0x08
} access_type_t;