We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d123845 commit 202a2f1Copy full SHA for 202a2f1
src/CodeCalculator/CodeCalculatorFloat.php
@@ -85,7 +85,7 @@ public function decode(string $strippedCode): CodeArea
85
$latPlaceVal = floor($latPlaceVal / OpenLocationCode::ENCODING_BASE);
86
$lngPlaceVal = floor($lngPlaceVal / OpenLocationCode::ENCODING_BASE);
87
$latVal += strpos(OpenLocationCode::CODE_ALPHABET, $strippedCode[$i]) * $latPlaceVal;
88
- $lngVal = strpos(OpenLocationCode::CODE_ALPHABET, $strippedCode[$i + 1]) * $lngPlaceVal;
+ $lngVal += strpos(OpenLocationCode::CODE_ALPHABET, $strippedCode[$i + 1]) * $lngPlaceVal;
89
}
90
unset($i);
91
for ($i = OpenLocationCode::PAIR_CODE_LENGTH; $i < min(strlen($strippedCode), OpenLocationCode::MAX_DIGIT_COUNT); $i++) {
0 commit comments