Fix comparison.
authorRoberto Raggi <roberto.raggi@nokia.com>
Mon, 1 Aug 2011 14:49:08 +0000 (16:49 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 30 Aug 2011 11:18:28 +0000 (13:18 +0200)
Change-Id: I58ae5237f3458ee4bada89d1d676645e575d681f
Reviewed-on: http://codereview.qt.nokia.com/3777
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/qml/ftw/qhashedstring.cpp

index d7f951c..4a7b337 100644 (file)
@@ -83,7 +83,7 @@ uint32_t calculateHash(const schar* chars, int length) {
             int d = c - '0';
             if (is_first_char) {
                 is_first_char = false;
-                if (c = '0' && length > 1) {
+                if (c == '0' && length > 1) {
                     is_array_index = false;
                     continue;
                 }