aboutsummaryrefslogtreecommitdiffstats
path: root/includes/diff/DiffEngine.php
diff options
context:
space:
mode:
authorBartosz DziewoƄski <matma.rex@gmail.com>2017-10-06 21:17:52 +0200
committerJames D. Forrester <jforrester@wikimedia.org>2018-05-30 18:05:19 -0700
commit4fd27f006f3a233f2bed8585b1325d318763abb0 (patch)
tree2224d5033453ef1974f2c153801fbcf6e9a8c13e /includes/diff/DiffEngine.php
parent52b0799e8deca45ba345eb6db4f173a20bbe44fa (diff)
downloadmediawikicore-4fd27f006f3a233f2bed8585b1325d318763abb0.tar.gz
mediawikicore-4fd27f006f3a233f2bed8585b1325d318763abb0.zip
Use PHP 5.6 '**' operator instead of 'pow()' function
Change-Id: Ieb22e1dbfcffaa4e7b3dcfabbcc999e5dd59a4bf
Diffstat (limited to 'includes/diff/DiffEngine.php')
-rw-r--r--includes/diff/DiffEngine.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/diff/DiffEngine.php b/includes/diff/DiffEngine.php
index 273d1d61f6fc..142c51d7a0c5 100644
--- a/includes/diff/DiffEngine.php
+++ b/includes/diff/DiffEngine.php
@@ -351,7 +351,7 @@ class DiffEngine {
$this->maxDifferences = ceil( ( $this->m + $this->n ) / 2.0 );
if ( $this->m * $this->n > $this->tooLong ) {
// limit complexity to D^POW_LIMIT for long sequences
- $this->maxDifferences = floor( pow( $this->maxDifferences, $this->powLimit - 1.0 ) );
+ $this->maxDifferences = floor( $this->maxDifferences ** ( $this->powLimit - 1.0 ) );
wfDebug( "Limiting max number of differences to $this->maxDifferences\n" );
}