Skip to content

Commit 0b4b8f3

Browse files
committed
revise value param to set_value_numeric_multi
It's now a `void*` rather than an `int*` to emphasise that it can be a pointer to an array of any type.
1 parent 8019879 commit 0b4b8f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/dicom/dicom.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ bool dcm_element_set_value_integer(DcmError **error,
742742
* numeric Value Representation.
743743
* If that is not the case, the function will fail.
744744
*
745-
* Although the value passed is `int*`, it should
745+
* Although the value passed is `void*`, it should
746746
* be a pointer to an array of 16- to 64-bit numeric values of the
747747
* appropriate type for the Data Element Value Representation.
748748
*
@@ -761,7 +761,7 @@ bool dcm_element_set_value_integer(DcmError **error,
761761
DCM_EXTERN
762762
bool dcm_element_set_value_numeric_multi(DcmError **error,
763763
DcmElement *element,
764-
int *values,
764+
void *values,
765765
uint32_t vm,
766766
bool steal);
767767

src/dicom-data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ bool dcm_element_set_value_integer(DcmError **error,
675675

676676
bool dcm_element_set_value_numeric_multi(DcmError **error,
677677
DcmElement *element,
678-
int *value,
678+
void *value,
679679
uint32_t vm,
680680
bool steal)
681681
{

0 commit comments

Comments
 (0)