minor fixes that get GSOC regular expressions to compile

This commit is contained in:
Dmitry Olshansky 2011-08-08 15:30:45 +04:00
parent 30c5cb3f47
commit ca379e5993
2 changed files with 2 additions and 1 deletions

View file

@ -4630,7 +4630,7 @@ if (isInputRange!R1 && isInputRange!R2 && !(isSomeString!R1 && isSomeString!R2))
{
for (;; r1.popFront(), r2.popFront())
{
if (r1.empty) return -r2.empty;
if (r1.empty) return -cast(int)r2.empty;
if (r2.empty) return r1.empty;
auto a = r1.front, b = r2.front;
if (binaryFun!pred(a, b)) return -1;

View file

@ -5483,6 +5483,7 @@ if (isRandomAccessRange!Range)
this(Range input)
{
this._input = input;
if(!__ctfe)
debug
{
// Check the sortedness of the input