Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
92f74ca7
Commit
92f74ca7
authored
Dec 18, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[] fixes
R=ken OCL=21565 CL=21565
parent
4026500d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/cmd/gc/subr.c
src/cmd/gc/subr.c
+1
-1
src/cmd/gc/walk.c
src/cmd/gc/walk.c
+6
-4
No files found.
src/cmd/gc/subr.c
View file @
92f74ca7
...
...
@@ -440,7 +440,7 @@ aindex(Node *b, Type *t)
r
=
typ
(
TARRAY
);
r
->
type
=
t
;
r
->
bound
=
bound
;
do
width
(
r
);
check
width
(
r
);
return
r
;
}
...
...
src/cmd/gc/walk.c
View file @
92f74ca7
...
...
@@ -1995,6 +1995,7 @@ newcompat(Node *n)
if
(
t
==
T
)
goto
bad
;
/*
if(isptr[t->etype]) {
if(t->type == T)
goto bad;
...
...
@@ -2012,12 +2013,13 @@ newcompat(Node *n)
r->type = n->type;
goto ret;
}
*/
switch
(
t
->
etype
)
{
default:
goto
bad
;
case
TSTRUCT
:
//
goto bad;
//
//
case TSTRUCT:
if
(
n
->
left
!=
N
)
yyerror
(
"dont know what new(,e) means"
);
...
...
@@ -3510,7 +3512,7 @@ maplit(Node *n)
tempname
(
var
,
t
);
a
=
nod
(
ONEW
,
N
,
N
);
a
->
type
=
t
;
a
->
type
=
t
->
type
;
a
=
nod
(
OAS
,
var
,
a
);
addtop
=
list
(
addtop
,
a
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment