On Wed, 22 May 2013 17:07:42 -0400, Bill Hoffman said:

>How does that change the alignment of the buffer?

Maybe I've looked too quickly at the code... I'm suggesting this pattern change:

short* buffer_from_somewhere = ...
double foo = *((double*)buffer_from_somewhere);

to

short* buffer_from_somewhere = ...
double foo;
memcpy (&foo, buffer_from_somewhere, sizeof(foo));

But maybe that's not the pattern at hand, I've admittedly looked hastily...

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to