diff --git a/dmd/mtype.c b/dmd/mtype.c index ca10d19e..0a33579c 100644 --- a/dmd/mtype.c +++ b/dmd/mtype.c @@ -4,6 +4,7 @@ // All Rights Reserved // written by Walter Bright // http://www.digitalmars.com +// http://www.dsource.org/projects/dmd/browser/branches/dmd-1.x/src/mtype.c // License for redistribution is by either the Artistic License // in artistic.txt, or the GNU General Public License in gnu.txt. // See the included readme.txt for details. @@ -1984,7 +1985,7 @@ Type *TypeSArray::semantic(Loc loc, Scope *sc) return this; } dinteger_t d1 = dim->toInteger(); - dim = dim->castTo(sc, tsize_t); + dim = dim->implicitCastTo(sc, tsize_t); dim = dim->optimize(WANTvalue); dinteger_t d2 = dim->toInteger();