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/qv4compiler.cpp | |
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/qv4compiler.cpp')
-rw-r--r-- | src/qml/compiler/qv4compiler.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/qml/compiler/qv4compiler.cpp b/src/qml/compiler/qv4compiler.cpp index f11905b319..8c15be5477 100644 --- a/src/qml/compiler/qv4compiler.cpp +++ b/src/qml/compiler/qv4compiler.cpp @@ -107,7 +107,7 @@ QV4::Compiler::JSUnitGenerator::JSUnitGenerator(QV4::Compiler::Module *module) registerString(QString()); } -uint QV4::Compiler::JSUnitGenerator::registerIndexedGetterLookup() +int QV4::Compiler::JSUnitGenerator::registerIndexedGetterLookup() { CompiledData::Lookup l; l.type_and_flags = CompiledData::Lookup::Type_IndexedGetter; @@ -116,7 +116,7 @@ uint QV4::Compiler::JSUnitGenerator::registerIndexedGetterLookup() return lookups.size() - 1; } -uint QV4::Compiler::JSUnitGenerator::registerIndexedSetterLookup() +int QV4::Compiler::JSUnitGenerator::registerIndexedSetterLookup() { CompiledData::Lookup l; l.type_and_flags = CompiledData::Lookup::Type_IndexedSetter; @@ -125,12 +125,12 @@ uint QV4::Compiler::JSUnitGenerator::registerIndexedSetterLookup() return lookups.size() - 1; } -uint QV4::Compiler::JSUnitGenerator::registerGetterLookup(const QString &name) +int QV4::Compiler::JSUnitGenerator::registerGetterLookup(const QString &name) { return registerGetterLookup(registerString(name)); } -uint QV4::Compiler::JSUnitGenerator::registerGetterLookup(int nameIndex) +int QV4::Compiler::JSUnitGenerator::registerGetterLookup(int nameIndex) { CompiledData::Lookup l; l.type_and_flags = CompiledData::Lookup::Type_Getter; @@ -139,13 +139,12 @@ uint QV4::Compiler::JSUnitGenerator::registerGetterLookup(int nameIndex) return lookups.size() - 1; } - -uint QV4::Compiler::JSUnitGenerator::registerSetterLookup(const QString &name) +int QV4::Compiler::JSUnitGenerator::registerSetterLookup(const QString &name) { return registerSetterLookup(registerString(name)); } -uint QV4::Compiler::JSUnitGenerator::registerSetterLookup(int nameIndex) +int QV4::Compiler::JSUnitGenerator::registerSetterLookup(int nameIndex) { CompiledData::Lookup l; l.type_and_flags = CompiledData::Lookup::Type_Setter; @@ -154,12 +153,12 @@ uint QV4::Compiler::JSUnitGenerator::registerSetterLookup(int nameIndex) return lookups.size() - 1; } -uint QV4::Compiler::JSUnitGenerator::registerGlobalGetterLookup(const QString &name) +int QV4::Compiler::JSUnitGenerator::registerGlobalGetterLookup(const QString &name) { return registerGlobalGetterLookup(registerString(name)); } -uint QV4::Compiler::JSUnitGenerator::registerGlobalGetterLookup(int nameIndex) +int QV4::Compiler::JSUnitGenerator::registerGlobalGetterLookup(int nameIndex) { CompiledData::Lookup l; l.type_and_flags = CompiledData::Lookup::Type_GlobalGetter; |