summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_kernel_qlayout.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-10-29 12:06:28 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-10-29 12:15:07 (GMT)
commitfb94cee1a10c7bfb8e73dd0a094ae71fe96bf3e7 (patch)
treed9802b2fb480e675992c69e58b42caa887253498 /doc/src/snippets/code/src_gui_kernel_qlayout.cpp
parentc4d715260bd0ed5f3b6d38a63a2659715342c90a (diff)
downloadQt-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