Skip to content

Commit

Permalink
Fixed Windows build.
Browse files Browse the repository at this point in the history
There seems to be "max" keyword used somewhere in Windows headers.
  • Loading branch information
pjarosik committed Jan 12, 2022
1 parent b042ba8 commit c4cae0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrus/core/devices/us4r/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ splitRxAperturesIfNecessary(const std::vector<TxRxParamsSequence> &seqs,
// NOTE: for us4OEM:0, even if it is RX nop, the results of this
// rx NOP will be transferred from us4OEM to host memory,
// to get the frame metadata.
maxSubapertureIdx = std::max((ChannelIdx)1, maxSubapertureIdx);
maxSubapertureIdx = (std::max)((ChannelIdx)1, maxSubapertureIdx);
}
currentFrameIdx[seqIdx] += maxSubapertureIdx;
}
Expand Down

0 comments on commit c4cae0d

Please sign in to comment.