summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_util_qundostack.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-05 17:16:37 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-10-07 02:29:56 (GMT)
commit0ce74f7a69bcf03de166378a5915624dc32752ac (patch)
tree0508d0ec4e649156763ef412218d91061dee82f0 /doc/src/snippets/code/src_gui_util_qundostack.cpp
parentfdb81b0f61652a0e2035b8822011d2be4ed2a0ce (diff)
downloadQt-0ce74f7a69bcf03de166378a5915624dc32752ac.zip
Qt-0ce74f7a69bcf03de166378a5915624dc32752ac.tar.gz
Qt-0ce74f7a69bcf03de166378a5915624dc32752ac.tar.bz2
QScript: do not crash on PowerPC
There is no 'this' register in the global context. The computation of the this register for the global context gives the 'codeBlock' register in the frame header. On Intel processor, a JSValue() is 0x0 when converted to a pointer, but this is not the case on PowerPC (it is 0xfffffff9) so it just crash later when acessing the code block. Solution: special condition for the global context when getting the 'this' object Reviewed-by: Kent Hansen (cherry picked from commit 37bd7a5711e57ea8c45ae75102ddee3ab905a0e5)
Diffstat (limited to 'doc/src/snippets/code/src_gui_util_qundostack.cpp')
0 files changed, 0 insertions, 0 deletions