eet_data: guarantee double-word alignment for temporary stack buffer.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 20 Jan 2014 23:37:09 +0000 (21:37 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 20 Jan 2014 23:44:42 +0000 (21:44 -0200)
commit0d1d51f64ed5813eefe410fb16ec60ffa32d0588
treec698d2dea66ecda2c6d8e6db1481629b194ed41f
parentdbc4669d6818d733d1d512f766ad8cf4c799dbba
eet_data: guarantee double-word alignment for temporary stack buffer.

The code was giving enough memory to store doubles and longs, but they
could be unaligned as "unsigned char" allows 1-byte alignment, while
double may require 8 bytes.

By specifying the array as "long long" we force certain alignment in a
platform independent way. As this array is small enough and
short-lived, the number of items were not changed, this results in
more bytes on the stack but it shouldn't matter.
src/lib/eet/eet_data.c