Skip to content
Snippets Groups Projects
Commit fc55d0b2 authored by Phy's avatar Phy
Browse files

remove string argument in assert - DiffEngine

parent d3b71b9d
No related branches found
No related tags found
No related merge requests found
......@@ -408,7 +408,7 @@ class _DiffEngine {
$i = 0;
$j = 0;
USE_ASSERTS && assert('count($lines) == count($changed)');
USE_ASSERTS && assert(count($lines) == count($changed));
$len = count($lines);
$other_len = count($other_changed);
......@@ -428,7 +428,7 @@ class _DiffEngine {
$j++;
while ($i < $len && ! $changed[$i]) {
USE_ASSERTS && assert('$j < $other_len && ! $other_changed[$j]');
USE_ASSERTS && assert($j < $other_len && ! $other_changed[$j]);
$i++;
$j++;
while ($j < $other_len && $other_changed[$j])
......@@ -461,10 +461,10 @@ class _DiffEngine {
$changed[--$i] = false;
while ($start > 0 && $changed[$start - 1])
$start--;
USE_ASSERTS && assert('$j > 0');
USE_ASSERTS && assert($j > 0);
while ($other_changed[--$j])
continue;
USE_ASSERTS && assert('$j >= 0 && !$other_changed[$j]');
USE_ASSERTS && assert($j >= 0 && !$other_changed[$j]);
}
/*
......@@ -487,7 +487,7 @@ class _DiffEngine {
while ($i < $len && $changed[$i])
$i++;
USE_ASSERTS && assert('$j < $other_len && ! $other_changed[$j]');
USE_ASSERTS && assert($j < $other_len && ! $other_changed[$j]);
$j++;
if ($j < $other_len && $other_changed[$j]) {
$corresponding = $i;
......@@ -504,10 +504,10 @@ class _DiffEngine {
while ($corresponding < $i) {
$changed[--$start] = 1;
$changed[--$i] = 0;
USE_ASSERTS && assert('$j > 0');
USE_ASSERTS && assert($j > 0);
while ($other_changed[--$j])
continue;
USE_ASSERTS && assert('$j >= 0 && !$other_changed[$j]');
USE_ASSERTS && assert($j >= 0 && !$other_changed[$j]);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment