CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 07/12/31 02:45:29
Modified files:
libamf : amf.cpp
Log message:
Fix bogus cast for bool.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp?cvsroot=gnash&r1=1.52&r2=1.53
Patches:
Index: amf.cpp
===================================================================
RCS file: /sources/gnash/gnash/libamf/amf.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -b -r1.52 -r1.53
--- amf.cpp 31 Dec 2007 00:26:48 -0000 1.52
+++ amf.cpp 31 Dec 2007 02:45:28 -0000 1.53
@@ -332,7 +332,7 @@
memset(x, 0, pktsize);
// Encode a boolean value. 0 for false, 1 for true
*x++ = (char)Element::BOOLEAN;
- *x = *reinterpret_cast<boost::uint8_t *>(flag);
+ *x = flag;
swapBytes(x, 2);
x += sizeof(boost::uint16_t);
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit