|
@@ -68,7 +68,7 @@ public:
|
|
|
return &values[0];
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+ int pos = findInsertPosition(key);
|
|
|
if (pos >= 0 && pos < length && strcmp(key, keys[pos]) == 0) {
|
|
|
return &values[pos];
|
|
|
}
|
|
@@ -94,6 +94,7 @@ public:
|
|
|
return &values[0];
|
|
|
|
|
|
}
|
|
|
+ int pos = findInsertPosition(key);
|
|
|
if (pos >= 0 && pos < length && strcmp(key, keys[pos]) == 0) {
|
|
|
return &values[pos];
|
|
|
}
|