Hi,

attached patch fixes <subject> but this looks so strange, I suspect it
might be on purpose (in that case a comment in the code seems
appropriate ;) )

Could somebody shed some light on the issue, please ?

        Thanks,
                Carsten
Index: Source/Base/Network/Base/OSGBinaryMessage.inl
===================================================================
--- Source/Base/Network/Base/OSGBinaryMessage.inl	(revision 580)
+++ Source/Base/Network/Base/OSGBinaryMessage.inl	(working copy)
@@ -100,7 +100,7 @@
 
 inline void BinaryMessage::putReal32(const Real32  value)
 {
-    Real32 net = osgHostToNet(value);
+    Real32 net = osgHostToNet<Real32>(value);
     _buffer.insert(_buffer.end(),
                    reinterpret_cast<UInt8*>(&net),
                    reinterpret_cast<UInt8*>(&net) + sizeof(net));
@@ -171,7 +171,7 @@
 inline void BinaryMessage::getReal32(Real32  &value)
 {
     Real32 net = *reinterpret_cast<Real32*>(&_buffer[_pos]);
-    value = osgNetToHost<UInt32>(net);
+    value = osgNetToHost<Real32>(net);
     _pos += sizeof(net);
 }
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to