diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-07-18 15:43:11 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-08-02 13:36:09 +0000 |
commit | 26532c66ee78d1aefbd3d02d7d149699f1c0ed95 (patch) | |
tree | 5aa6625d5f9c6bcd349c1d91f71308a133992893 /src/qml/compiler/qv4codegen_p.h | |
parent | 79f4a4135cb96f8ee55ed85e7a58d0a32f81ee04 (diff) |
Fix various signed/unsigned warnings
Change-Id: I9f4a5a8470c1abc6b07a28c71fdad0d208e1fea1
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r-- | src/qml/compiler/qv4codegen_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h index d27001c7ef..a5eb4d35f1 100644 --- a/src/qml/compiler/qv4codegen_p.h +++ b/src/qml/compiler/qv4codegen_p.h @@ -384,9 +384,9 @@ protected: return jsUnitGenerator->registerString(name); } int registerConstant(QV4::ReturnedValue v) { return jsUnitGenerator->registerConstant(v); } - uint registerGetterLookup(int nameIndex) { return jsUnitGenerator->registerGetterLookup(nameIndex); } - uint registerSetterLookup(int nameIndex) { return jsUnitGenerator->registerSetterLookup(nameIndex); } - uint registerGlobalGetterLookup(int nameIndex) { return jsUnitGenerator->registerGlobalGetterLookup(nameIndex); } + int registerGetterLookup(int nameIndex) { return jsUnitGenerator->registerGetterLookup(nameIndex); } + int registerSetterLookup(int nameIndex) { return jsUnitGenerator->registerSetterLookup(nameIndex); } + int registerGlobalGetterLookup(int nameIndex) { return jsUnitGenerator->registerGlobalGetterLookup(nameIndex); } // Returns index in _module->functions virtual int defineFunction(const QString &name, AST::Node *ast, @@ -544,7 +544,7 @@ protected: Result _expr; Module *_module; BytecodeGenerator::Label _exitBlock; - unsigned _returnAddress; + int _returnAddress; Context *_context; AST::LabelledStatement *_labelledStatement; QV4::Compiler::JSUnitGenerator *jsUnitGenerator; |