gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] Test failure on amd 64 and possible fix


From: Bruce Milner
Subject: [Gnash-dev] Test failure on amd 64 and possible fix
Date: Sat, 31 Mar 2007 11:33:11 -0600
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

This makes the number tests pass on my amd64 ubuntu machine. I haven't really followed the project except to try 0.7.2. Disclaimer, I haven't touched c++ for 15 years, so this may not be optimal and I also haven't tried this within the browser, but the code looked suspicious for me anyway.


--bruce

Index: amf.cpp
===================================================================
RCS file: /sources/gnash/gnash/libamf/amf.cpp,v
retrieving revision 1.28
diff -r1.28 amf.cpp
126c126
<     unsigned long       l;
---
>     uint32_t          l;
143,145c143,145
<           l = *(unsigned long *)x;
<           *(unsigned long *)x = *((unsigned long *)x + 1);
<           *((unsigned long *)x + 1) = l;
---
>           l = *(uint32_t *)x;
>           *(uint32_t *)x = *((uint32_t *)x + 1);
>           *((uint32_t *)x + 1) = l;
147c147
<           swapBytes((char *)((unsigned long *)x+1), 4);
---
>           swapBytes((char *)((uint32_t *)x+1), 4);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]