Commit 8acfa490 by Francois Gygi

fixed bug for big endian platforms


git-svn-id: http://qboxcode.org/svn/qb/trunk@551 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 09db290a
......@@ -3,7 +3,7 @@
// WavefunctionHandler.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: WavefunctionHandler.C,v 1.13 2007-10-19 17:37:06 fgygi Exp $
// $Id: WavefunctionHandler.C,v 1.14 2007-11-29 08:29:47 fgygi Exp $
#if USE_XERCES
......@@ -397,7 +397,7 @@ void WavefunctionHandler::endElement(const XMLCh* const uri,
// use data in b
assert(length/sizeof(double)==wftmpr_size);
#if PLT_BIG_ENDIAN
byteswap_double(wftmpr_size,d);
byteswap_double(wftmpr_size,(double*)b);
#endif
memcpy(&wftmpr[0],b,wftmpr_size*sizeof(double));
XMLString::release(&b);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment