From 2d7941ea1724a515852a83541621eaf7f9b4e6d4 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 27 Jun 2019 01:51:03 +0200 Subject: [PATCH] uldaq: fix compare of differing signedness --- lib/nodes/uldaq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodes/uldaq.cpp b/lib/nodes/uldaq.cpp index 4e7186c76..687f0999a 100644 --- a/lib/nodes/uldaq.cpp +++ b/lib/nodes/uldaq.cpp @@ -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)