summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2008-08-27 04:46:17 +0000
committerCharles Harris <charlesr.harris@gmail.com>2008-08-27 04:46:17 +0000
commitdfab4520b63b75d7e310a33405716518e2a0b8f8 (patch)
treeda697e1a0bd3c528bc0f2e47e08b4e9963b95220 /numpy/core
parent88c8abb00f49bdabd3b336f0bf0a8efaf6887acd (diff)
downloadnumpy-dfab4520b63b75d7e310a33405716518e2a0b8f8.tar.gz
Simplify (commented out) trunc.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/umathmodule.c.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src
index bef419bbd..77675c441 100644
--- a/numpy/core/src/umathmodule.c.src
+++ b/numpy/core/src/umathmodule.c.src
@@ -335,7 +335,7 @@ static double
trunc(double x)
{
if (x < 0) {
- return -floor(-x);
+ return ceil(x);
}
else {
return floor(x);