From 8f2312b3ebe633606535cde1acd7db179ae0e75f Mon Sep 17 00:00:00 2001 From: Bo Zhang Date: Wed, 11 Sep 2024 17:33:15 -0600 Subject: [PATCH] fix dspaces DATATYPE translation in get() --- src/dspaces-client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dspaces-client.c b/src/dspaces-client.c index 0dded3c2..f733e3e2 100644 --- a/src/dspaces-client.c +++ b/src/dspaces-client.c @@ -1672,7 +1672,12 @@ static void fill_odsc(dspaces_client_t client, const char *var_name, odsc->version = ver; memset(odsc->owner, 0, sizeof(odsc->owner)); odsc->st = st; - odsc->size = elem_size; + if(elem_size < 0) { + odsc->type = elem_size; + odsc->size = type_to_size(elem_size); + } else { + odsc->size = elem_size; + } odsc->bb.num_dims = ndim; memset(odsc->bb.lb.c, 0, sizeof(uint64_t) * BBOX_MAX_NDIM);