it should be the cols

This commit is contained in:
lion 2022-06-23 17:03:25 +08:00
parent 06d81c581e
commit 734ac597ea
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class XdbSearcher
// locate the segment index block based on the vector index // locate the segment index block based on the vector index
$il0 = ($ip >> 24) & 0xFF; $il0 = ($ip >> 24) & 0xFF;
$il1 = ($ip >> 16) & 0xFF; $il1 = ($ip >> 16) & 0xFF;
$idx = $il0 * self::VectorIndexRows * self::VectorIndexSize + $il1 * self::VectorIndexSize; $idx = $il0 * self::VectorIndexCols * self::VectorIndexSize + $il1 * self::VectorIndexSize;
if ($this->vectorIndex != null) { if ($this->vectorIndex != null) {
$sPtr = self::getLong($this->vectorIndex, $idx); $sPtr = self::getLong($this->vectorIndex, $idx);
$ePtr = self::getLong($this->vectorIndex, $idx + 4); $ePtr = self::getLong($this->vectorIndex, $idx + 4);