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
d6f15be6
Commit
d6f15be6
authored
Sep 11, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for funcs without returns
R=ken OCL=15170 CL=15170
parent
ff65872f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
6 deletions
+9
-6
flag.go
src/lib/flag.go
+1
-3
hypot.go
src/lib/math/hypot.go
+1
-0
pow.go
src/lib/math/pow.go
+1
-0
os_error.go
src/lib/os/os_error.go
+1
-2
powser1.go
test/chan/powser1.go
+1
-1
bug028.go
test/fixedbugs/bug028.go
+1
-0
bug086.go
test/fixedbugs/bug086.go
+0
-0
golden.out
test/golden.out
+3
-0
No files found.
src/lib/flag.go
View file @
d6f15be6
...
...
@@ -144,9 +144,7 @@ func (b *BoolValue) Str() string {
if
b
.
val
{
return
"true"
}
else
{
return
"false"
}
return
"false"
}
func
NewBoolValue
(
b
bool
,
p
*
bool
)
*
BoolValue
{
...
...
src/lib/math/hypot.go
View file @
d6f15be6
...
...
@@ -49,4 +49,5 @@ hypot(p, q float64) float64
q
=
q
*
r
;
r
=
q
/
p
;
}
panic
(
"unreachable"
)
}
src/lib/math/pow.go
View file @
d6f15be6
...
...
@@ -62,4 +62,5 @@ pow(arg1,arg2 float64) float64
}
arg1
*=
arg1
;
}
panic
(
"unreachable"
)
}
src/lib/os/os_error.go
View file @
d6f15be6
...
...
@@ -70,7 +70,6 @@ const NoError = "No Error"
func
(
e
*
Error
)
String
()
string
{
if
e
==
nil
{
return
NoError
}
else
{
return
e
.
s
}
return
e
.
s
}
test/chan/powser1.go
View file @
d6f15be6
...
...
@@ -382,7 +382,7 @@ func Monmul(U PS, n int) PS{
// Multiply by x
func
Xmul
(
U
PS
)
PS
{
Monmul
(
U
,
1
);
return
Monmul
(
U
,
1
);
}
func
Rep
(
c
*
rat
)
PS
{
...
...
test/fixedbugs/bug028.go
View file @
d6f15be6
...
...
@@ -16,6 +16,7 @@ func Alloc(i int) int {
case
10
:
return
10
;
}
return
0
}
func
main
()
{
...
...
test/bugs/bug086.go
→
test/
fixed
bugs/bug086.go
View file @
d6f15be6
File moved
test/golden.out
View file @
d6f15be6
...
...
@@ -226,5 +226,8 @@ fixedbugs/bug073.go:9: illegal types for operand: RSH
=========== fixedbugs/bug081.go
fixedbugs/bug081.go:5: syntax error
=========== fixedbugs/bug086.go
fixedbugs/bug086.go:5: function ends without a return statement
=========== fixedbugs/bug091.go
fixedbugs/bug091.go:14: label exit not defined
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