diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index cad0bae9c..029f784f2 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -5585,7 +5585,7 @@ void compressedBitmapUnitTest() { size_t ser; char *buf; ndpi_bitmap_iterator *it; - u_int32_t value; + u_int64_t value; for(i=0; i<1000; i++) { u_int32_t v = rand(); @@ -5601,12 +5601,12 @@ void compressedBitmapUnitTest() { assert(ser > 0); if(trace) printf("len: %u\n", (unsigned int)ser); - b1 = ndpi_bitmap_deserialize(buf); + b1 = ndpi_bitmap_deserialize(buf, ser); assert(b1); assert((it = ndpi_bitmap_iterator_alloc(b))); while(ndpi_bitmap_iterator_next(it, &value)) { - if(trace) printf("%u ", value); + if(trace) printf("%lu ", (unsigned long)value); } if(trace) printf("\n"); |