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
b5e75621
Commit
b5e75621
authored
Apr 22, 2009
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
supply default indirection to
map indexing - bug 143 R=r OCL=27695 CL=27695
parent
5cb6843a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
walk.c
src/cmd/gc/walk.c
+2
-0
No files found.
src/cmd/gc/walk.c
View file @
b5e75621
...
...
@@ -465,6 +465,7 @@ loop:
case
OINDEX
:
if
(
cl
==
2
&&
cr
==
1
)
{
// a,b = map[] - mapaccess2
implicitstar
(
&
r
->
left
);
walktype
(
r
->
left
,
Erv
);
if
(
!
istype
(
r
->
left
->
type
,
TMAP
))
break
;
...
...
@@ -3227,6 +3228,7 @@ multi:
// if so, types are valuetype,bool
if
(
cl
!=
2
)
goto
badt
;
implicitstar
(
&
nr
->
left
);
walktype
(
nr
->
left
,
Elv
);
t
=
nr
->
left
->
type
;
if
(
!
istype
(
t
,
TMAP
))
...
...
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