summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-09-27 08:17:25 +0300
committerSami Merila <sami.merila@nokia.com>2011-09-27 08:17:25 +0300
commite90cffc2c5f313cc813d0a21a1d9d0afe8d0ea7a (patch)
treed0ab4ed127240ad7159188f1354247a23ee24699 /tests/auto/qwidget/tst_qwidget.cpp
parent872872f3d3f0d89010d3a196b70e8445a08d0784 (diff)
Crash in QDeclarativeCompiler::indexOfProperty
In QDeclarativePropertyCache, plain integer bitfield overrideIndex is initialized with -1 in class constructor. Unfortunately, ARM compiler treats bitfields as unsigned, unless explicitly defined as signed [1]. Therefore, overrideIndex actually gets initial value of 2147483647, which causes array operations done with the index to fail. As a fix, define overrideIndex as signed int bitfield. [1] http://www.keil.com/support/man/docs/armccref/armccref_Babjddhe.htm Under bitfields/Note: "A plain bitfield, declared without either signed or unsigned qualifiers, is treated as unsigned" Task-number: QT-5285 Reviewed-by: Aaron Kennedy
Diffstat (limited to 'tests/auto/qwidget/tst_qwidget.cpp')
0 files changed, 0 insertions, 0 deletions