aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine.cpp
diff options
context:
space:
mode:
authorOlivier De Cannière <olivier.decanniere@qt.io>2023-10-05 16:54:03 +0200
committerOlivier De Cannière <olivier.decanniere@qt.io>2023-10-06 18:06:47 +0200
commitd4bab563568a211bf05260fed1b80b4652b20507 (patch)
tree05ee1c982ad9e3c60162711f7b212d882b622248 /src/qml/jsruntime/qv4engine.cpp
parentf77c59459be7bef325237c87a3441323b160a523 (diff)
codegenerator: Convert to the original type of registers for unary ops
When generating the code for unary operations, we converted from the received type to the expected type in readAccumulator. Except, if the latter was replaced by a different type such as with a generalization to QVariant for example, then we would not retrieve the original type the operations should be performed on but keep the replacement type. Convert the received type to the original type instead of to the replacement. Fixes: QTBUG-117789 Pick-to: 6.6 Change-Id: Ia0109918443b1e1be2bc57b9d46a3a628799806b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
0 files changed, 0 insertions, 0 deletions