summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-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);