V4: Do not reverse-propagate int32 conversion through unary minus.
authorErik Verbruggen <erik.verbruggen@digia.com>
Mon, 3 Feb 2014 15:30:50 +0000 (16:30 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 14 Feb 2014 11:35:38 +0000 (12:35 +0100)
commit093fe73f915dbd2554fa4e109bfda59eeecb9a17
tree0af491fb0c181b0e1a3001b63cfad5ad62f80447
parent7fc6d58629d1fce4421e49b1c5a03e8af90381d8
V4: Do not reverse-propagate int32 conversion through unary minus.

Conversion to int32 might truncate, and because int32 is two's
complement, INT_MIN might get converted incorrectly.

Change-Id: Iaf893d3bd619f4c5791654e609f96cffca5c6917
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4ssa.cpp