diff options
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator.cpp')
-rw-r--r-- | src/qml/compiler/qv4bytecodegenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator.cpp b/src/qml/compiler/qv4bytecodegenerator.cpp index cae984a253..3c28f6a719 100644 --- a/src/qml/compiler/qv4bytecodegenerator.cpp +++ b/src/qml/compiler/qv4bytecodegenerator.cpp @@ -97,9 +97,9 @@ void BytecodeGenerator::finalize(Compiler::Context *context) int offset = instructionOffsets.at(j.instructionIndex) + j.offset; // qDebug() << "offset data is at" << offset; char *c = code.data() + offset; - ptrdiff_t linkedInstructionOffset = instructionOffsets.at(linkedInstruction) - offset; + int linkedInstructionOffset = instructionOffsets.at(linkedInstruction) - offset; // qDebug() << "linked instruction" << linkedInstruction << "at " << instructionOffsets.at(linkedInstruction); - memcpy(c, &linkedInstructionOffset, sizeof(ptrdiff_t)); + memcpy(c, &linkedInstructionOffset, sizeof(int)); } context->code = code; |