Commit 9f92ac1e authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

avoid the stupid cast in loop body

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 534d463e
...@@ -131,7 +131,8 @@ ...@@ -131,7 +131,8 @@
static void BOZO_fill_array(void *a, size_t len) static void BOZO_fill_array(void *a, size_t len)
{ {
for(size_t i = 0 ; i < len ; ++i) ((uint8_t*)a)[i] = rand(); uint8_t *b = a;
for(size_t i = 0 ; i < len ; ++i) b[i] = rand();
} }
#define BOZO_begin_array(name, len_name, min_size) \ #define BOZO_begin_array(name, len_name, min_size) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment