mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-06-30 00:38:07 -07:00
23 lines
883 B
Diff
23 lines
883 B
Diff
https://github.com/pydata/numexpr/commit/1c6a024947c3aa1bf926ecb9828036b306d7c6d7
|
|
https://bugs.gentoo.org/853955
|
|
|
|
From 1c6a024947c3aa1bf926ecb9828036b306d7c6d7 Mon Sep 17 00:00:00 2001
|
|
From: Robert McLeod <robbmcleod@gmail.com>
|
|
Date: Mon, 24 Jan 2022 10:54:34 -0800
|
|
Subject: [PATCH] Fix for #397, use of NPY_ARRAY_UPDATEIFCOPY flag
|
|
|
|
Changes from 2.8.0 to 2.8.1
|
|
---------------------------
|
|
--- a/numexpr/interpreter.cpp
|
|
+++ b/numexpr/interpreter.cpp
|
|
@@ -1269,7 +1269,7 @@ NumExpr_run(NumExprObject *self, PyObject *args, PyObject *kwds)
|
|
}
|
|
Py_INCREF(dtypes[0]);
|
|
a = (PyArrayObject *)PyArray_FromArray(operands[0], dtypes[0],
|
|
- NPY_ARRAY_ALIGNED|NPY_ARRAY_UPDATEIFCOPY);
|
|
+ NPY_ARRAY_ALIGNED);
|
|
if (a == NULL) {
|
|
goto fail;
|
|
}
|
|
|