stanley-king 8 éve
szülő
commit
05ecde657d
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      helper/search/util.php

+ 2 - 2
helper/search/util.php

@@ -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];