Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MAINT: Update FreeBSD version and fix test failure#28377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletionsnumpy/_core/src/multiarray/convert_datatype.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3517,7 +3517,9 @@ initialize_void_and_object_globals(void) {
method->nin = 1;
method->nout = 1;
method->name = "object_to_any_cast";
method->flags = NPY_METH_SUPPORTS_UNALIGNED | NPY_METH_REQUIRES_PYAPI;
method->flags = (NPY_METH_SUPPORTS_UNALIGNED
| NPY_METH_REQUIRES_PYAPI
| NPY_METH_NO_FLOATINGPOINT_ERRORS);
method->casting = NPY_UNSAFE_CASTING;
method->resolve_descriptors = &object_to_any_resolve_descriptors;
method->get_strided_loop = &object_to_any_get_loop;
Expand All@@ -3532,7 +3534,9 @@ initialize_void_and_object_globals(void) {
method->nin = 1;
method->nout = 1;
method->name = "any_to_object_cast";
method->flags = NPY_METH_SUPPORTS_UNALIGNED | NPY_METH_REQUIRES_PYAPI;
method->flags = (NPY_METH_SUPPORTS_UNALIGNED
| NPY_METH_REQUIRES_PYAPI
| NPY_METH_NO_FLOATINGPOINT_ERRORS);
method->casting = NPY_SAFE_CASTING;
method->resolve_descriptors = &any_to_object_resolve_descriptors;
method->get_strided_loop = &any_to_object_get_loop;
Expand Down
7 changes: 4 additions & 3 deletionsnumpy/_core/src/multiarray/dtype_transfer.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -235,8 +235,8 @@ any_to_object_get_loop(
NpyAuxData **out_transferdata,
NPY_ARRAYMETHOD_FLAGS *flags)
{

*flags = NPY_METH_REQUIRES_PYAPI; /* No need for floating point errors */
/* Python API doesn't use FPEs and this also attempts to hide spurious ones. */
*flags = NPY_METH_REQUIRES_PYAPI | NPY_METH_NO_FLOATINGPOINT_ERRORS;

*out_loop = _strided_to_strided_any_to_object;
*out_transferdata = PyMem_Malloc(sizeof(_any_to_object_auxdata));
Expand DownExpand Up@@ -342,7 +342,8 @@ object_to_any_get_loop(
NpyAuxData **out_transferdata,
NPY_ARRAYMETHOD_FLAGS *flags)
{
*flags = NPY_METH_REQUIRES_PYAPI;
/* Python API doesn't use FPEs and this also attempts to hide spurious ones. */
*flags = NPY_METH_REQUIRES_PYAPI | NPY_METH_NO_FLOATINGPOINT_ERRORS;

/* NOTE: auxdata is only really necessary to flag `move_references` */
_object_to_any_auxdata *data = PyMem_Malloc(sizeof(*data));
Expand Down
2 changes: 1 addition & 1 deletiontools/ci/cirrus_arm.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -67,7 +67,7 @@ freebsd_test_task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
compute_engine_instance:
image_project: freebsd-org-cloud-dev
image: family/freebsd-14-0
image: family/freebsd-14-2
platform: freebsd
cpu: 1
memory: 4G
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp