update to new world. still can't use it but it's a lot of editing....
SVN=125218
diff --git a/src/lib/math/log.go b/src/lib/math/log.go
index cc7ebf0..1c44eb8 100644
--- a/src/lib/math/log.go
+++ b/src/lib/math/log.go
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package log
+package math
-import sys "sys"
export log, log10
/*
@@ -37,7 +36,7 @@
var exp int;
if arg <= 0 {
- return sys.NaN();
+ panic "return sys.NaN()";
}
exp,x = sys.frexp(arg);
@@ -64,7 +63,7 @@
{
if arg <= 0 {
- return sys.NaN();
+ panic "return sys.NaN()";
}
return log(arg) * ln10o1;
}