Skip to content

Commit e052860

Browse files
committed
Compiler warning.
1 parent 94eb011 commit e052860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/io/plugins/trialformats/c3d/c3dhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ namespace io
15281528
throw(FormatError("ORG.C3D - The number of dimensions exceeds the maximum of 7 dimensions."));
15291529
for (const auto& dim : dimensions)
15301530
if (dim > 255) throw(FormatError("ORG.C3D - One of the dimension exceeds the maximum of 255 elements."));
1531-
size_t size = std::accumulate(dimensions.begin(), dimensions.end(), std::abs(format), std::multiplies<size_t>());;
1531+
size_t size = std::accumulate(dimensions.begin(), dimensions.end(), std::abs(format), std::multiplies<unsigned>());;
15321532
size_t offset = 5 + dimensions.size() + size;
15331533
if (offset > 65535)
15341534
throw(FormatError("ORG.C3D - Elements' size exceeds the maximum of 65535 bytes."));

0 commit comments

Comments
 (0)