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
900e076d
Commit
900e076d
authored
Oct 10, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle zeroed interface in ifaceI2I
R=r OCL=16938 CL=16938
parent
32d00e6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
iface.c
src/runtime/iface.c
+9
-8
No files found.
src/runtime/iface.c
View file @
900e076d
...
@@ -231,7 +231,6 @@ sys·ifaceI2T(Sigt *st, Map *im, void *it, void *ret)
...
@@ -231,7 +231,6 @@ sys·ifaceI2T(Sigt *st, Map *im, void *it, void *ret)
void
void
sys
·
ifaceI2I
(
Sigi
*
si
,
Map
*
im
,
void
*
it
,
Map
*
retim
,
void
*
retit
)
sys
·
ifaceI2I
(
Sigi
*
si
,
Map
*
im
,
void
*
it
,
Map
*
retim
,
void
*
retit
)
{
{
if
(
debug
)
{
if
(
debug
)
{
prints
(
"I2I sigi="
);
prints
(
"I2I sigi="
);
printsigi
(
si
);
printsigi
(
si
);
...
@@ -241,15 +240,17 @@ sys·ifaceI2I(Sigi *si, Map *im, void *it, Map *retim, void *retit)
...
@@ -241,15 +240,17 @@ sys·ifaceI2I(Sigi *si, Map *im, void *it, Map *retim, void *retit)
}
}
if
(
im
==
nil
)
{
if
(
im
==
nil
)
{
throw
(
"ifaceI2I: nil map"
);
// If incoming interface is uninitialized (zeroed)
return
;
// make the outgoing interface zeroed as well.
retim
=
nil
;
retit
=
nil
;
}
else
{
retit
=
it
;
retim
=
im
;
if
(
im
->
sigi
!=
si
)
retim
=
hashmap
(
si
,
im
->
sigt
);
}
}
retit
=
it
;
retim
=
im
;
if
(
im
->
sigi
!=
si
)
retim
=
hashmap
(
si
,
im
->
sigt
);
if
(
debug
)
{
if
(
debug
)
{
prints
(
"I2I ret="
);
prints
(
"I2I ret="
);
printiface
(
retim
,
retit
);
printiface
(
retim
,
retit
);
...
...
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