diff dmd/template.c @ 19:788401029ecf trunk

[svn r23] * Updated to DMD 1.021
author lindquist
date Thu, 04 Oct 2007 03:42:56 +0200
parents c53b6e3fe49a
children 70d6113eeb8c
line wrap: on
line diff
--- a/dmd/template.c	Thu Oct 04 01:47:53 2007 +0200
+++ b/dmd/template.c	Thu Oct 04 03:42:56 2007 +0200
@@ -1232,7 +1232,7 @@
 	    return (MATCH) implicitConvTo(at);
 	}
 	else if (ty == Tsarray && at->ty == Tarray &&
-	    next->equals(at->nextOf()))
+	    nextOf()->equals(at->nextOf()))
 	{
 	    goto Lexact;
 	}
@@ -3278,7 +3278,6 @@
 	else if (ea)
 	{   sinteger_t v;
 	    real_t r;
-	    unsigned char *p;
 
 	    if (ea->op == TOKvar)
 	    {
@@ -3298,6 +3297,8 @@
 		continue;
 	    }
 #if 1
+	    /* Use deco that matches what it would be for a function parameter
+	     */
 	    buf.writestring(ea->type->deco);
 #else
 	    // Use type of parameter, not type of argument