Skip to content
Snippets Groups Projects
Commit 5c1edd14 authored by Antonio Valentino's avatar Antonio Valentino
Browse files

Fix build failure on ppc64el and powerpc

parent 941852b2
Branches
Tags
No related merge requests found
numexpr (2.6.1-2) UNRELEASED; urgency=high
* debian/patches
- new patch to fix test failures on ppc64el and powerpc
See also upstream bug #224 (https://github.com/pydata/numexpr/issues/224)
-- Antonio Valentino <antonio.valentino@tiscali.it> Sat, 26 Nov 2016 16:06:19 +0000
numexpr (2.6.1-1) unstable; urgency=medium
* New upstream release
......
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 26 Nov 2016 16:02:27 +0000
Subject: fix test on powerpc and ppc64el
See also upstream bug #224 [1]
[1] https://github.com/pydata/numexpr/issues/224
---
numexpr/interp_body.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/numexpr/interp_body.cpp b/numexpr/interp_body.cpp
index 475a89f..a8c2911 100644
--- a/numexpr/interp_body.cpp
+++ b/numexpr/interp_body.cpp
@@ -271,7 +271,7 @@
case OP_SUB_LLL: VEC_ARG2(l_dest = l1 - l2);
case OP_MUL_LLL: VEC_ARG2(l_dest = l1 * l2);
case OP_DIV_LLL: VEC_ARG2(l_dest = l2 ? (l1 / l2) : 0);
- case OP_POW_LLL: VEC_ARG2(l_dest = (l2 < 0) ? (1 / l1) : (long long)pow((long double)l1, (long double)l2));
+ case OP_POW_LLL: VEC_ARG2(l_dest = (l2 < 0) ? (1 / l1) : (long long)round(pow((long double)l1, (long double)l2)));
case OP_MOD_LLL: VEC_ARG2(l_dest = l2 ? (l1 % l2) : 0);
case OP_LSHIFT_LLL: VEC_ARG2(l_dest = l1 << l2);
case OP_RSHIFT_LLL: VEC_ARG2(l_dest = l1 >> l2);
0001-fix-test-on-powerpc-and-ppc64el.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment