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:
99fa2ce
)
bugfix: doubles weren't parsed right.
author
kramm
<kramm>
Mon, 22 Apr 2002 07:41:27 +0000
(07:41 +0000)
committer
kramm
<kramm>
Mon, 22 Apr 2002 07:41:27 +0000
(07:41 +0000)
lib/modules/swfaction.c
patch
|
blob
|
history
diff --git
a/lib/modules/swfaction.c
b/lib/modules/swfaction.c
index
f9d9699
..
85fab91
100644
(file)
--- a/
lib/modules/swfaction.c
+++ b/
lib/modules/swfaction.c
@@
-328,11
+328,14
@@
void swf_DumpActions(ActionTAG*atag, char*prefix)
} else if (type == 6) {
U8 a[8];
int t;
+ memcpy(&a[4],value,4);
+ memcpy(a,&value[4],4);
#ifdef WORDS_BIGENDIAN
- for(t=0;t<8;t++)
- a[7-t]=value[t];
-#else
- memcpy(a,value,8);
+ for(t=0;t<4;t++) {
+ U8 tmp = a[t];
+ a[t]=a[7-t];
+ a[7-t] = tmp;
+ }
#endif
printf(" double:%f", *(double*)a);
} else if (type == 7) {