diff options
author | Antoine SOULIER <103120622+asoulier@users.noreply.github.com> | 2022-12-20 17:14:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 17:14:21 -0800 |
commit | 1cd91ca6ed816d8b3109adf881ee68bdf1fa7f3a (patch) | |
tree | fa9324a0ce324123797a4baeaaaec0aab3f94c47 | |
parent | 685b1d002626a5f1a2a967aa411aa77d0f24ce08 (diff) | |
parent | 03d0cbd87fccaa5f595b358f7d015ca4c90108d7 (diff) | |
download | liblc3-1cd91ca6ed816d8b3109adf881ee68bdf1fa7f3a.tar.gz |
Merge pull request #17 from google/14-spectral-noise-shaping-test-error-on-s390x
test: Fix bad type mapping of between Python and C
-rw-r--r-- | test/ctypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ctypes.h b/test/ctypes.h index 97a3add..6a39a32 100644 --- a/test/ctypes.h +++ b/test/ctypes.h @@ -470,13 +470,13 @@ static PyObject *to_sns_data(PyObject *obj, struct lc3_sns_data *data) CTYPES_CHECK("sns.idx_a", to_scalar(item, NPY_INT, &data->idx_a)); if ((item = PyDict_GetItemString(obj, "ls_a"))) - CTYPES_CHECK("sns.ls_a", to_scalar(item, NPY_INT, &data->ls_a)); + CTYPES_CHECK("sns.ls_a", to_scalar(item, NPY_BOOL, &data->ls_a)); if ((item = PyDict_GetItemString(obj, "idx_b"))) CTYPES_CHECK("sns.idx_b", to_scalar(item, NPY_INT, &data->idx_b)); if ((item = PyDict_GetItemString(obj, "ls_b"))) - CTYPES_CHECK("sns.ls_b", to_scalar(item, NPY_INT, &data->ls_b)); + CTYPES_CHECK("sns.ls_b", to_scalar(item, NPY_BOOL, &data->ls_b)); return obj; } |