diff options
author | Trond Kjernaasen <trond@trolltech.com> | 2009-05-27 09:11:57 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-05-27 09:35:35 (GMT) |
commit | 0f0888a37eb61824bf3f6f9fe5ba6ee470500f0d (patch) | |
tree | 3d58b2069ff9d5b683562823ab5a795cb4160f48 /doc/src/snippets/code/src_script_qscriptvalue.cpp | |
parent | 0d476cff58820378e9fb9565eb2874f109f86665 (diff) | |
download | Qt-0f0888a37eb61824bf3f6f9fe5ba6ee470500f0d.zip Qt-0f0888a37eb61824bf3f6f9fe5ba6ee470500f0d.tar.gz Qt-0f0888a37eb61824bf3f6f9fe5ba6ee470500f0d.tar.bz2 |
Fixed aliasing pointer corruption in QDataStream.
Use a union instead of an unsafe cast when swapping the bytes in
the QDataStream streaming operators. The old seems to cause problems
with Link Time Code Generation optimizations with the MSVC compilers.
Task-number: 247708
Reviewed-by: Samuel
Reviewed-by: Thiago
BT: yes
(cherry picked from commit 2c1b11f2192fd48da01a1093a7cb4a848de43c8a)
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalue.cpp')
0 files changed, 0 insertions, 0 deletions