Skip to content

Commit

Permalink
Merge branch 'clarify-tuple-length-error' of https://github.com/klick…
Browse files Browse the repository at this point in the history
…verbot/dmd into kickverbot-clarify-tuple-length-error
  • Loading branch information
WalterBright committed Mar 26, 2011
2 parents b098d2d + c85be5e commit ad2e669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/iasm.c
Expand Up @@ -2001,7 +2001,7 @@ STATIC OPND *asm_merge_opnds(OPND *o1, OPND *o2)

size_t index = o2->disp;
if (index >= tup->objects->dim)
error(asmstate.loc, "tuple index %u exceeds %u", index, tup->objects->dim);
error(asmstate.loc, "tuple index %u exceeds length %u", index, tup->objects->dim);
else
{
Object *o = (Object *)tup->objects->data[index];
Expand Down
2 changes: 1 addition & 1 deletion src/mtype.c
Expand Up @@ -3275,7 +3275,7 @@ void TypeSArray::resolve(Loc loc, Scope *sc, Expression **pe, Type **pt, Dsymbol
sc = sc->pop();

if (d >= td->objects->dim)
{ error(loc, "tuple index %ju exceeds %u", d, td->objects->dim);
{ error(loc, "tuple index %ju exceeds length %u", d, td->objects->dim);
goto Ldefault;
}
Object *o = (Object *)td->objects->data[(size_t)d];
Expand Down

0 comments on commit ad2e669

Please sign in to comment.