Fix g++ build
[libside.git] / src / test.c
index 1f2bea4864efc68a88e317abee1772fee3105b2c..c395aef7bc0bf4bc1957463cc49afaed12cde95f 100644 (file)
@@ -1919,7 +1919,8 @@ static
 void test_gather_vla_flex(void)
 {
        side_event_cond(my_provider_event_gathervlaflex) {
-               struct testgathervlaflex *mystruct = malloc(sizeof(*mystruct) + VLAFLEXLEN + sizeof(uint64_t));
+               struct testgathervlaflex *mystruct =
+                       (struct testgathervlaflex *) malloc(sizeof(*mystruct) + VLAFLEXLEN + sizeof(uint64_t));
 
                mystruct->len = VLAFLEXLEN;
                mystruct->otherfield = 0;
This page took 0.034743 seconds and 4 git commands to generate.