From 1b6842a2f1c00ade1130c887ecc74d309df55cb4 Mon Sep 17 00:00:00 2001 From: lion Date: Thu, 23 Jun 2022 17:03:25 +0800 Subject: [PATCH] it should be the cols --- binding/php/XdbSearcher.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/php/XdbSearcher.class.php b/binding/php/XdbSearcher.class.php index 6ebd375..df8816e 100644 --- a/binding/php/XdbSearcher.class.php +++ b/binding/php/XdbSearcher.class.php @@ -104,7 +104,7 @@ class XdbSearcher // locate the segment index block based on the vector index $il0 = ($ip >> 24) & 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) { $sPtr = self::getLong($this->vectorIndex, $idx); $ePtr = self::getLong($this->vectorIndex, $idx + 4);