Skip to content

Commit

Permalink
fix g++ complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 30, 2011
1 parent 0c9c52c commit b3e6302
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interpret.c
@@ -1,5 +1,5 @@
// Compiler implementation of the D programming language
// Copyright (c) 1999-2010 by Digital Mars
// Copyright (c) 1999-2011 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
Expand Down Expand Up @@ -3645,6 +3645,7 @@ Expression *SliceExp::interpret(InterState *istate, CtfeGoal goal)
e->type = type;
return e;
}
{
uinteger_t ilwr = lwr->toInteger();
uinteger_t iupr = upr->toInteger();
if (e1->op == TOKnull)
Expand All @@ -3657,6 +3658,7 @@ Expression *SliceExp::interpret(InterState *istate, CtfeGoal goal)
e = Slice(type, e1, lwr, upr);
if (e == EXP_CANT_INTERPRET)
error("%s cannot be interpreted at compile time", toChars());
}
return e;

Lcant:
Expand Down

0 comments on commit b3e6302

Please sign in to comment.