i spotted another typo(?) in
template <>
inline Real128
osgBigEndianToHost<Real128>(Real128 src)
{
#if BYTE_ORDER == LITTLE_ENDIAN
char *p = reinterpret_cast<char*>(&src);
std::swap(p[0], p[15]);
std::swap(p[1], p[14]);
std::swap(p[2], p[14]); // << shouldn't this be 13? [Line 2754]
std::swap(p[3], p[12]);
std::swap(p[4], p[11]);
std::swap(p[5], p[10]);
std::swap(p[6], p[9]);
std::swap(p[7], p[8]);
return src;
#else
return src;
#endif
}
I don't have write access to the svn repository, might somebody fix this to
p[13] ?
(or - as Carsten mentioned - put a comment in, if it is meant to be that
way!)
Thomas
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Carsten Neumann
> Sent: Friday, March 16, 2007 12:35 PM
> To: [email protected]
> Subject: [Opensg-core] BinaryMessage::getReal32 uses
> osgNetToHost<UInt32> ?
>
> 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
>
-------------------------------------------------------------------------
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