diff options
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator_p.h')
-rw-r--r-- | src/qml/compiler/qv4bytecodegenerator_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator_p.h b/src/qml/compiler/qv4bytecodegenerator_p.h index a0255b2059..594c97790b 100644 --- a/src/qml/compiler/qv4bytecodegenerator_p.h +++ b/src/qml/compiler/qv4bytecodegenerator_p.h @@ -149,7 +149,7 @@ public: void addInstruction(const InstrData<InstrT> &data) { Instr genericInstr; - genericInstr.Common.instructionType = static_cast<Instr::Type>(InstrT); + genericInstr.Common.instructionType = InstrT; InstrMeta<InstrT>::setDataNoCommon(genericInstr, data); addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr); } @@ -229,7 +229,7 @@ public: Jump addJumpInstruction(const InstrData<InstrT> &data) { Instr genericInstr; - genericInstr.Common.instructionType = static_cast<Instr::Type>(InstrT); + genericInstr.Common.instructionType = InstrT; InstrMeta<InstrT>::setDataNoCommon(genericInstr, data); return Jump(this, addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr), offsetof(InstrData<InstrT>, offset)); } |