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
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/cmd/gc/go.h
src/cmd/gc/go.h
+1
-0
src/cmd/gc/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