[CMake] SEGV and signal BUS with cmake-2.8.11 on Solaris 10

Sean McBride sean at rogue-research.com
Wed May 22 17:17:41 EDT 2013


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                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the CMake mailing list