diff options
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator.cpp')
-rw-r--r-- | src/qml/compiler/qv4bytecodegenerator.cpp | 6 |
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 |