Skip to content

Commit

Permalink
argh again
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Oct 3, 2023
1 parent 637108b commit e583d20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/check_dicom.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ END_TEST
START_TEST(test_element_US_multivalue_empty)
{
uint32_t tag = 0x00280010;
uint16_t value[0];
// msvc hates zero length arrays, so use 1
uint16_t value[] = {0};

DcmElement *element = dcm_element_create(NULL, tag, DCM_VR_US);
(void) dcm_element_set_value_numeric_multi(NULL, element, &value, 0, false);
Expand Down

0 comments on commit e583d20

Please sign in to comment.