diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-10-29 12:06:28 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-10-29 12:15:07 (GMT) |
commit | fb94cee1a10c7bfb8e73dd0a094ae71fe96bf3e7 (patch) | |
tree | d9802b2fb480e675992c69e58b42caa887253498 /doc/src/snippets/code/src_gui_kernel_qlayout.cpp | |
parent | c4d715260bd0ed5f3b6d38a63a2659715342c90a (diff) | |
download | Qt-fb94cee1a10c7bfb8e73dd0a094ae71fe96bf3e7.zip Qt-fb94cee1a10c7bfb8e73dd0a094ae71fe96bf3e7.tar.gz Qt-fb94cee1a10c7bfb8e73dd0a094ae71fe96bf3e7.tar.bz2 |
Fix gcc bug in qReallocAligned
the line
faked.pptr[-1] = real.ptr;
was ignored by the GCC 4.5. (optimized out)
Workaround by using proper reinterpret_cast casting instead of union casting.
Fixes crash in tst_Collections::alignment
The crash would occurs for any use of qReallocAligned with alignement > sizeof(void*)
(fortunately this is not often called)
Reviewed-by: thiago
Diffstat (limited to 'doc/src/snippets/code/src_gui_kernel_qlayout.cpp')
0 files changed, 0 insertions, 0 deletions