summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-14 14:01:55 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-14 14:01:55 -0800
commit1f2f893c7de22ef3f64d68e0b62d43fbdb07af7c (patch)
treead834b994a1e7eae2e49d58317b6886894df629d /arith.c
parentdd6c8f68e1befce6ab4bfa66422f33609c25b6bd (diff)
downloadtxr-1f2f893c7de22ef3f64d68e0b62d43fbdb07af7c.tar.gz
txr-1f2f893c7de22ef3f64d68e0b62d43fbdb07af7c.tar.bz2
txr-1f2f893c7de22ef3f64d68e0b62d43fbdb07af7c.zip
* arith.c (abso): broken for fixnums.
Diffstat (limited to 'arith.c')
-rw-r--r--arith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arith.c b/arith.c
index ccc29657..14696c24 100644
--- a/arith.c
+++ b/arith.c
@@ -459,7 +459,7 @@ val abso(val anum)
return n;
} else {
cnum n = c_num(anum);
- return num(n < 0 ? n : n);
+ return num(n < 0 ? -n : n);
}
}