diff options
author | Antoine Soulier <asoulier@google.com> | 2022-12-17 14:13:01 -0800 |
---|---|---|
committer | Antoine Soulier <asoulier@google.com> | 2022-12-17 14:13:01 -0800 |
commit | 03d0cbd87fccaa5f595b358f7d015ca4c90108d7 (patch) | |
tree | fa9324a0ce324123797a4baeaaaec0aab3f94c47 | |
parent | 685b1d002626a5f1a2a967aa411aa77d0f24ce08 (diff) | |
download | liblc3-03d0cbd87fccaa5f595b358f7d015ca4c90108d7.tar.gz |
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; } |