Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OBITools3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools3
Commits
b3bfa9ca
Commit
b3bfa9ca
authored
Nov 27, 2018
by
Celine Mercier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/array_indexer.c
src/array_indexer.c
+1
-4
No files found.
src/array_indexer.c
View file @
b3bfa9ca
...
...
@@ -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
,
int
32_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
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment