diff options
author | Reedy <reedy@wikimedia.org> | 2024-03-02 22:09:43 +0000 |
---|---|---|
committer | Reedy <reedy@wikimedia.org> | 2024-03-02 23:46:03 +0000 |
commit | a9b600419d72d0ce8aa0a23e001637d1e8257877 (patch) | |
tree | cedc6ba8b2b4edce2c86e26e4058415b152390ea | |
parent | d12b90e4b79707d158caef1764ecdc2bbdecffcb (diff) |
updateCollation: Explicitly cast $scale to intREL1_41
Bug: T358949
Change-Id: I15c6c95bd2ccc2973465db75453ce6c0bc29b98a
(cherry picked from commit 4313b73df6162fb8657558b8e0f83d828b58cc2a)
-rw-r--r-- | maintenance/updateCollation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/updateCollation.php b/maintenance/updateCollation.php index 2adaf6e502c6..d82a82ec4445 100644 --- a/maintenance/updateCollation.php +++ b/maintenance/updateCollation.php @@ -443,7 +443,7 @@ TEXT $this->output( "Sort key size histogram\nRaw data: $raw\n\n" ); $maxBinVal = max( $coarseHistogram ); - $scale = 60 / $maxBinVal; + $scale = (int)( 60 / $maxBinVal ); $prevBoundary = 0; for ( $coarseIndex = 0; $coarseIndex < $numBins; $coarseIndex++ ) { $val = $coarseHistogram[$coarseIndex] ?? 0; |