Browse Source

Fix Variant::GetUInt() return type. Closes #710.

Lasse Öörni 10 years ago
parent
commit
08ea925895
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Source/Urho3D/Core/Variant.h
  2. 1 1
      Source/Urho3D/LuaScript/pkgs/Core/Variant.pkg

+ 1 - 1
Source/Urho3D/Core/Variant.h

@@ -722,7 +722,7 @@ public:
     /// Return int or zero on type mismatch.
     int GetInt() const { return type_ == VAR_INT ? value_.int_ : 0; }
     /// Return unsigned int or zero on type mismatch.
-    int GetUInt() const { return type_ == VAR_INT ? (unsigned)value_.int_ : 0; }
+    unsigned GetUInt() const { return type_ == VAR_INT ? (unsigned)value_.int_ : 0; }
     /// Return StringHash or zero on type mismatch.
     StringHash GetStringHash() const { return StringHash(GetUInt()); }
     /// Return bool or false on type mismatch.

+ 1 - 1
Source/Urho3D/LuaScript/pkgs/Core/Variant.pkg

@@ -124,7 +124,7 @@ class Variant
     tolua_outside void VariantSetMatrix4 @ SetMatrix4(const Matrix4& value);
 
     int GetInt() const;
-    int GetUInt() const;
+    unsigned GetUInt() const;
     StringHash GetStringHash();
     bool GetBool() const;
     float GetFloat() const;