From: Bert Vermeulen Date: Sat, 7 Dec 2013 17:50:12 +0000 (+0100) Subject: filter.c: Work around const warning. X-Git-Tag: libsigrok-0.3.0~465 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bb9d6116f828c4790334d98c65414dcef660d169;p=libsigrok.git filter.c: Work around const warning. --- 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;