1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

uldaq: fix compare of differing signedness

This commit is contained in:
Steffen Vogel 2019-06-27 01:51:03 +02:00
parent 4038ec03bc
commit 2d7941ea17

View file

@ -606,7 +606,7 @@ int uldaq_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *re
if (u->in.status != SS_RUNNING)
return -1;
long long start_index = u->in.buffer_pos;
size_t start_index = u->in.buffer_pos;
/* Wait for data available condition triggered by event callback */
if (start_index + n->in.vectorize * u->in.channel_count > u->in.transfer_status.currentScanCount)