Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
go
Commits
2450c590
Commit
2450c590
authored
15 years ago
by
Ken Thompson
Browse files
Options
Download
Email Patches
Plain Diff
typeswitch - expression evaluated
twice instead of once. R=r OCL=27015 CL=27015
parent
62d11a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/cmd/gc/swt.c
src/cmd/gc/swt.c
+1
-1
No files found.
src/cmd/gc/swt.c
View file @
2450c590
...
...
@@ -788,7 +788,7 @@ typeswitch(Node *sw)
a
=
syslook
(
"ifacethash"
,
1
);
argtype
(
a
,
sw
->
ntest
->
right
->
type
);
a
=
nod
(
OCALL
,
a
,
sw
->
ntest
->
right
);
a
=
nod
(
OCALL
,
a
,
facename
);
a
=
nod
(
OAS
,
hashname
,
a
);
cas
=
list
(
cas
,
a
);
...
...
This diff is collapsed.
Click to expand it.
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