]> sigrok.org Git - libsigrok.git/commitdiff
filter.c: Work around const warning.
authorBert Vermeulen <redacted>
Sat, 7 Dec 2013 17:50:12 +0000 (18:50 +0100)
committerBert Vermeulen <redacted>
Sat, 7 Dec 2013 17:50:12 +0000 (18:50 +0100)
filter.c

index 005b8984c8507ccf5a7e32e7e1935f9654d539ce..11610157a45497f18a1d00becae00b90c9a04453 100644 (file)
--- 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;