summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4bytecodegenerator.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2017-07-18 15:43:11 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-08-02 13:36:09 +0000
commit26532c66ee78d1aefbd3d02d7d149699f1c0ed95 (patch)
tree5aa6625d5f9c6bcd349c1d91f71308a133992893 /src/qml/compiler/qv4bytecodegenerator.cpp
parent79f4a4135cb96f8ee55ed85e7a58d0a32f81ee04 (diff)
downloadqtdeclarative-26532c66ee78d1aefbd3d02d7d149699f1c0ed95.tar.gz
Fix various signed/unsigned warnings
Change-Id: I9f4a5a8470c1abc6b07a28c71fdad0d208e1fea1 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator.cpp')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator.cpp b/src/qml/compiler/qv4bytecodegenerator.cpp
index 650c3b5fc1..825d823d3e 100644
--- a/src/qml/compiler/qv4bytecodegenerator.cpp
+++ b/src/qml/compiler/qv4bytecodegenerator.cpp
@@ -54,7 +54,7 @@ void BytecodeGenerator::setLocation(const QQmlJS::AST::SourceLocation &loc)
addInstruction(line); //### put line numbers in a side-table, not in the instruction stream
}
-unsigned BytecodeGenerator::newTemp()
+int BytecodeGenerator::newTemp()
{
int t = currentTemp++;
if (tempCount < currentTemp)
@@ -62,7 +62,7 @@ unsigned BytecodeGenerator::newTemp()
return t;
}
-unsigned BytecodeGenerator::newTempArray(int n)
+int BytecodeGenerator::newTempArray(int n)
{
int t = currentTemp;
currentTemp += n;
@@ -77,7 +77,7 @@ QByteArray BytecodeGenerator::finalize()
Instruction::InitStackFrame init;
init.instructionType = Instr::InitStackFrame;
- init.value = quint32(tempCount);
+ init.value = tempCount;
code.append(reinterpret_cast<const char *>(&init), InstrMeta<Instr::InitStackFrame>::Size);
// content