summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/util.js b/js/util.js
index 218b845..f1fd3c2 100644
--- a/js/util.js
+++ b/js/util.js
@@ -21,8 +21,8 @@ function mix(n,a,b){ return a*(1-n)+b*n }
function ceil(n){ return Math.ceil(n) }
function floor(n){ return Math.floor(n) }
function round(n){ return Math.round(n) }
-function max(n){ return Math.max(n) }
-function min(n){ return Math.min(n) }
+function max(a,b){ return Math.max(a,b) }
+function min(a,b){ return Math.min(a,b) }
function abs(n){ return Math.abs(n) }
function sign(n){ return Math.abs(n)/n }
function pow(n,b) { return Math.pow(n,b) }