|
@@ -263,7 +263,7 @@ class valtokey
|
|
|
|
|
|
public function findless($val,$start,$length)
|
|
|
{
|
|
|
- $pos = algorithm::lower_bonud($this->mValMap,$val);
|
|
|
+ $pos = algorithm::upper_bound($this->mValMap,$val);
|
|
|
if($pos < 0) {
|
|
|
return false;
|
|
|
}
|
|
@@ -281,7 +281,7 @@ class valtokey
|
|
|
if($pos < 0) {
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$result = [];
|
|
|
for ($i = $pos; $i >= 0 && $length > 0; $i--,$length--) {
|
|
|
$result[] = $this->mKeys[$i];
|