Skip to content

Commit

Permalink
Resoved the issue with int vs size_t comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarosik committed Nov 3, 2021
1 parent a84c891 commit 50ee795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrus/core/devices/us4r/probeadapter/ProbeAdapterImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void ProbeAdapterImpl::registerOutputBuffer(Us4ROutputBuffer *bufferDst, const U
bool isTriggerRequired = workMode == Scheme::WorkMode::HOST;
size_t nRepeats = nElementsDst/nElementsSrc;
uint16 startFiring = 0;
for(int i = 0; i < bufferSrc.getNumberOfElements(); ++i) {
for(size_t i = 0; i < bufferSrc.getNumberOfElements(); ++i) {
auto &srcElement = bufferSrc.getElement(i);
uint16 endFiring = srcElement.getFiring();
for(size_t j = 0; j < nRepeats; ++j) {
Expand Down

0 comments on commit 50ee795

Please sign in to comment.