update to new world. still can't use it but it's a lot of editing....
SVN=125218
diff --git a/src/lib/math/sqrt.go b/src/lib/math/sqrt.go
index 8209a3a..c5c0158 100644
--- a/src/lib/math/sqrt.go
+++ b/src/lib/math/sqrt.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 sqrt
+package math
-import sys "sys"
export sqrt
/*
@@ -20,13 +19,14 @@
var x, temp double;
var exp, i int;
+/* BUG: NO isINF
if sys.isInf(arg, 1) {
return arg;
}
-
+*/
if arg <= 0 {
if arg < 0 {
- return sys.NaN();
+ panic "return sys.NaN()"
}
return 0;
}