diff options
author | Ken Thompson <ken@golang.org> | 2008-09-04 17:15:15 -0700 |
---|---|---|
committer | Ken Thompson <ken@golang.org> | 2008-09-04 17:15:15 -0700 |
commit | ff5b496b6c6d111c9f4df092ce55a5571edca44d (patch) | |
tree | 74bfbe2a49c644be007b07de7c7084a38ffe6b37 /src/cmd/gc/const.c | |
parent | ed09fca289e656a085d4981baddfce7f00b5e41d (diff) | |
download | golang-ff5b496b6c6d111c9f4df092ce55a5571edca44d.tar.gz |
bugs 29, 61, 62, 74
fixedbugs 49 now (correctly) fails
bugs 32, 41, 68, 77 shouldnt be bugs
R=r
OCL=14842
CL=14842
Diffstat (limited to 'src/cmd/gc/const.c')
-rw-r--r-- | src/cmd/gc/const.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/gc/const.c b/src/cmd/gc/const.c index 3d967f578..649b548a8 100644 --- a/src/cmd/gc/const.c +++ b/src/cmd/gc/const.c @@ -43,10 +43,8 @@ convlit(Node *n, Type *t) case Wlitnil: if(!isptr[et] && et != TINTER) goto bad1; - if(isptrto(t, TSTRING)) { - n->val.u.sval = mal(8); - n->val.ctype = CTSTR; - } + if(isptrto(t, TSTRING)) + goto bad1; break; case Wlitstr: |