]> Cypherpunks repositories - gostls13.git/commitdiff
bug in type of first argument to slice
authorKen Thompson <ken@golang.org>
Wed, 10 Sep 2008 23:45:41 +0000 (16:45 -0700)
committerKen Thompson <ken@golang.org>
Wed, 10 Sep 2008 23:45:41 +0000 (16:45 -0700)
R=r
OCL=15113
CL=15113

src/cmd/gc/walk.c

index 8c26ac932f51df1cc062937eaf22309e9b64bcde..c317fbdaea82c404d2b582d223e44276b2f51d36 100644 (file)
@@ -2364,7 +2364,7 @@ arrayop(Node *n, int top)
                r = list(a, r);
 
                a = nod(OCONV, n->right->left, N);      // lb
-               a->type = types[TINT32];
+               a->type = types[TUINT32];
                r = list(a, r);
 
                a = n->left;                            // old
@@ -2391,12 +2391,12 @@ arrayop(Node *n, int top)
                r = list(a, r);
 
                a = nod(OCONV, n->right->left, N);      // lb
-               a->type = types[TINT32];
+               a->type = types[TUINT32];
                r = list(a, r);
 
                a = nodintconst(t->bound);              // nel
                a = nod(OCONV, a, N);
-               a->type = types[TINT32];
+               a->type = types[TUINT32];
                r = list(a, r);
 
                a = n->left;                            // old