aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2014-03-17 09:38:07 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-17 13:17:11 +0100
commit0e8cfbb2649763b687cdac876a90c1e6d3811b9d (patch)
tree2e3d03e1726237494260b41f6bff6450e4964bdf
parent003bac68790dec149eb5cc085bd8a25b468fb155 (diff)
qv4isel_moth.cpp: Fix MSVC-warnings about operator unary minus applied to unsigned.
compiler\qv4isel_moth.cpp(1041) : warning C4146: unary minus operator applied to unsigned type, result still unsigned compiler\qv4isel_moth.cpp(1056) : warning C4146: unary minus operator applied to unsigned type, result still unsigned compiler\qv4isel_moth.cpp(1096) : warning C4146: unary minus operator applied to unsigned type, result still unsigned Change-Id: Idb4714a277486ff736f49c50c7e840fd62e2150f Reviewed-by: Lars Knoll <lars.knoll@digia.com>
-rw-r--r--src/qml/compiler/qv4isel_moth.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp
index 1e0e88730b..4ae65938da 100644
--- a/src/qml/compiler/qv4isel_moth.cpp
+++ b/src/qml/compiler/qv4isel_moth.cpp
@@ -1038,7 +1038,7 @@ void InstructionSelection::visitJump(IR::Jump *s)
if (blockNeedsDebugInstruction) {
Instruction::Debug debug;
- debug.lineNumber = -currentLine;
+ debug.lineNumber = -int(currentLine);
addInstruction(debug);
}
@@ -1053,7 +1053,7 @@ void InstructionSelection::visitCJump(IR::CJump *s)
{
if (blockNeedsDebugInstruction) {
Instruction::Debug debug;
- debug.lineNumber = -currentLine;
+ debug.lineNumber = -int(currentLine);
addInstruction(debug);
}
@@ -1093,7 +1093,7 @@ void InstructionSelection::visitRet(IR::Ret *s)
if (blockNeedsDebugInstruction) {
// this is required so stepOut will always be guaranteed to stop in every stack frame
Instruction::Debug debug;
- debug.lineNumber = -currentLine;
+ debug.lineNumber = -int(currentLine);
addInstruction(debug);
}