Skip to content

Commit

Permalink
Fix test failures on big endian architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Sep 16, 2023
1 parent f3fdc01 commit d0b3419
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
Release Notes
=============

.. 1.14.1 (unreleased)
.. 1.14.2 (unreleased)
===================
1.14.1 (2023-09-16)
===================

- Addressed test failures on big endian architectures. [#116]


1.14.0 (2023-09-15)
Expand Down
14 changes: 7 additions & 7 deletions src/cdrizzleapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ tdriz(PyObject *obj UNUSED_PARAM, PyObject *args, PyObject *keywords)

/* Arguments in the order they appear */
PyObject *oimg, *owei, *pixmap, *oout, *owht, *ocon;
long uniqid = 1;
long xmin = 0;
long xmax = 0;
long ymin = 0;
long ymax = 0;
integer_t uniqid = 1;
integer_t xmin = 0;
integer_t xmax = 0;
integer_t ymin = 0;
integer_t ymax = 0;
double scale = 1.0;
double pfract = 1.0;
char *kernel_str = "square";
Expand All @@ -89,9 +89,9 @@ tdriz(PyObject *obj UNUSED_PARAM, PyObject *args, PyObject *keywords)
driz_log_message("starting tdriz");
driz_error_init(&error);

if (!PyArg_ParseTupleAndKeywords(args, keywords, "OOOOOO|lllllddssffs:tdriz", (char **)kwlist,
if (!PyArg_ParseTupleAndKeywords(args, keywords, "OOOOOO|iiiiiddssffs:tdriz", (char **)kwlist,
&oimg, &owei, &pixmap, &oout, &owht, &ocon, /* OOOOOO */
&uniqid, &xmin, &xmax, &ymin, &ymax, /* lllll */
&uniqid, &xmin, &xmax, &ymin, &ymax, /* iiiii */
&scale, &pfract, &kernel_str, &inun_str, /* ddss */
&expin, &wtscl, &fillstr) /* ffs */
) {
Expand Down

0 comments on commit d0b3419

Please sign in to comment.