Skip to content

Commit

Permalink
Guard max from macro expansion.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jul 6, 2021
1 parent 47e1eb2 commit ada1e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/e57/libE57Format/src/E57XmlParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ XMLSize_t E57FileInputStream::readBytes( XMLByte* const toFill
available_size = static_cast<size_t>(available);
else {
/// size_t is smaller than int64_t, Calc max that size_t can hold
const int64_t size_max = std::numeric_limits<size_t>::max();
const int64_t size_max = (std::numeric_limits<size_t>::max)();

/// read smaller of size_max, available
///??? redo
Expand Down

0 comments on commit ada1e2f

Please sign in to comment.