From bb9d6116f828c4790334d98c65414dcef660d169 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sat, 7 Dec 2013 18:50:12 +0100 Subject: [PATCH] filter.c: Work around const warning. --- filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter.c b/filter.c index 005b8984..11610157 100644 --- a/filter.c +++ b/filter.c @@ -151,7 +151,7 @@ SR_API int sr_filter_probes(unsigned int in_unitsize, unsigned int out_unitsize, /* If we reached this point, not all probes are used, so "compress". */ in_offset = out_offset = 0; while (in_offset <= length_in - in_unitsize) { - sample_in = data_in + in_offset; + sample_in = (uint8_t *)data_in + in_offset; sample_out = (*data_out) + out_offset; memset(sample_out, 0, out_unitsize); out_bit = 0;