Random Tuner
[satune.git] / src / Collections / hashtable.h
index 9f5f3b3b0a1ae8e6b9e99ad7a9d93bb6d651f90f..fdcb59f6436d46a056e8b4a0851112fce459a649 100644 (file)
@@ -255,9 +255,9 @@ public:
                                if (!search->val)
                                        break;
                        } else
-                               if (hashcode == search->hashcode)
-                                       if (equals(search->key, key))
-                                               return search->val;
+                       if (hashcode == search->hashcode)
+                               if (equals(search->key, key))
+                                       return search->val;
                        index++;
                        index &= capacitymask;
                        if (index == oindex)
@@ -297,15 +297,15 @@ public:
                                if (!search->val)
                                        break;
                        } else
-                               if (hashcode == search->hashcode)
-                                       if (equals(search->key, key)) {
-                                               _Val v = search->val;
-                                               //empty out this bin
-                                               search->val = (_Val) 1;
-                                               search->key = 0;
-                                               size--;
-                                               return v;
-                                       }
+                       if (hashcode == search->hashcode)
+                               if (equals(search->key, key)) {
+                                       _Val v = search->val;
+                                       //empty out this bin
+                                       search->val = (_Val) 1;
+                                       search->key = 0;
+                                       size--;
+                                       return v;
+                               }
                        index++;
                } while (true);
                return (_Val)0;
@@ -338,9 +338,9 @@ public:
                                if (!search->val)
                                        break;
                        } else
-                               if (hashcode == search->hashcode)
-                                       if (equals(search->key, key))
-                                               return true;
+                       if (hashcode == search->hashcode)
+                               if (equals(search->key, key))
+                                       return true;
                        index++;
                } while (true);
                return false;