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
92a1190c
Commit
92a1190c
authored
Dec 09, 2008
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
robs bug converting unsafe.pointer
R=r OCL=20834 CL=20834
parent
0d9c1abb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
go.h
src/cmd/gc/go.h
+1
-0
subr.c
src/cmd/gc/subr.c
+7
-0
No files found.
src/cmd/gc/go.h
View file @
92a1190c
...
...
@@ -156,6 +156,7 @@ struct Type
uchar
embedded
;
// TFIELD embedded type
uchar
siggen
;
uchar
funarg
;
uchar
copyany
;
// TFUNCT
uchar
thistuple
;
...
...
src/cmd/gc/subr.c
View file @
92a1190c
...
...
@@ -1779,6 +1779,8 @@ loop:
goto
loop
;
case
TANY
:
if
(
!
st
->
copyany
)
return
0
;
*
stp
=
t
;
break
;
...
...
@@ -1841,6 +1843,11 @@ deep(Type *t)
nt
=
t
;
// share from here down
break
;
case
TANY
:
nt
=
shallow
(
t
);
nt
->
copyany
=
1
;
break
;
case
TPTR32
:
case
TPTR64
:
case
TCHAN
:
...
...
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