summaryrefslogtreecommitdiff
path: root/src/lib/math
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-09-11 15:48:42 -0700
committerRob Pike <r@golang.org>2008-09-11 15:48:42 -0700
commit958ce404fa77e829b700a10c0e2b9b8aebb14cdc (patch)
tree0c4cfeae1803b8b4da4c2472b61584b66be41eaa /src/lib/math
parent853290b8da20830df5ec7e60fbf90ae965c078c2 (diff)
downloadgolang-958ce404fa77e829b700a10c0e2b9b8aebb14cdc.tar.gz
fixes for funcs without returns
R=ken OCL=15170 CL=15170
Diffstat (limited to 'src/lib/math')
-rw-r--r--src/lib/math/hypot.go1
-rw-r--r--src/lib/math/pow.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/math/hypot.go b/src/lib/math/hypot.go
index 3b3c1e510..d1afac9e3 100644
--- a/src/lib/math/hypot.go
+++ b/src/lib/math/hypot.go
@@ -49,4 +49,5 @@ hypot(p, q float64) float64
q = q*r;
r = q/p;
}
+ panic("unreachable")
}
diff --git a/src/lib/math/pow.go b/src/lib/math/pow.go
index 8adb72132..590b0114b 100644
--- a/src/lib/math/pow.go
+++ b/src/lib/math/pow.go
@@ -62,4 +62,5 @@ pow(arg1,arg2 float64) float64
}
arg1 *= arg1;
}
+ panic("unreachable")
}