Commit b3bfa9ca by Celine Mercier

Fixed a bug in the array indexer where the value's length was not

properly set to 0 if the value was NA
parent ece942e7
......@@ -54,7 +54,7 @@ index_t obi_index_array(Obi_indexer_p indexer, const void* value, uint8_t elt_si
}
const void* obi_retrieve_array(Obi_indexer_p indexer, index_t idx, int* value_length_p)
const void* obi_retrieve_array(Obi_indexer_p indexer, index_t idx, int32_t* value_length_p)
{
Obi_blob_p value_b;
......@@ -64,9 +64,6 @@ const void* obi_retrieve_array(Obi_indexer_p indexer, index_t idx, int* value_le
// Store array length
*value_length_p = (value_b->length_decoded_value) / (value_b->element_size);
// for (int i=0; i<*value_length_p; i++)
// fprintf(stderr, "\nvalue %d", ((obibool_t*)(value_b->value))[i]);
// Return pointer on mapped array
return ((void*) (value_b->value));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment