Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
af5e16cf
Commit
af5e16cf
authored
Dec 21, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix new(T) if type T []int.
make sure type of expr is T not just []int R=ken OCL=21688 CL=21688
parent
2b33a134
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
walk.c
src/cmd/gc/walk.c
+1
-0
No files found.
src/cmd/gc/walk.c
View file @
af5e16cf
...
@@ -2671,6 +2671,7 @@ arrayop(Node *n, int top)
...
@@ -2671,6 +2671,7 @@ arrayop(Node *n, int top)
r
=
nod
(
OCALL
,
on
,
r
);
r
=
nod
(
OCALL
,
on
,
r
);
walktype
(
r
,
top
);
walktype
(
r
,
top
);
r
->
type
=
t
;
// if t had a name, going through newarray lost it
break
;
break
;
case
OSLICE
:
case
OSLICE
:
...
...
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