Skip to content

Commit

Permalink
two more
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Oct 3, 2023
1 parent a8a1f2a commit c0b3e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dicom-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ bool dcm_element_set_value_string_multi(DcmError **error,

uint32_t length = 0;
for (uint32_t i = 0; i < vm; i++) {
length += strlen(values[i]);
length += (uint32_t) strlen(values[i]);
}
if (vm > 1) {
// add the separator characters
Expand Down Expand Up @@ -948,7 +948,7 @@ bool dcm_element_set_value(DcmError **error,
if (!dcm_element_set_value_numeric_multi(error,
element,
(int *) value,
length / size,
length / (uint32_t) size,
steal)) {
return false;
}
Expand Down

0 comments on commit c0b3e3f

Please sign in to comment.