Avoid of incompatible types in static vtables.
This commit is contained in:
parent
2f3417cf85
commit
a00305f0be
|
@ -71,11 +71,11 @@ ColoredSquare* ColoredSquare_new (double a, int color)
|
||||||
{
|
{
|
||||||
static ColoredSquare_interface vtable =
|
static ColoredSquare_interface vtable =
|
||||||
{
|
{
|
||||||
ColoredSquare_clone,
|
(void* (*) (void *)) ColoredSquare_clone,
|
||||||
Square_destroy,
|
(void (*) (void *)) Square_destroy,
|
||||||
ColoredSquare_type,
|
(const char* (*) (Figure *)) ColoredSquare_type,
|
||||||
ColoredSquare_draw,
|
(void (*) (Figure *)) ColoredSquare_draw,
|
||||||
Square_area,
|
(double (*) (Figure *)) Square_area,
|
||||||
Square_resize,
|
Square_resize,
|
||||||
Square_diag_length,
|
Square_diag_length,
|
||||||
ColoredSquare_set_color
|
ColoredSquare_set_color
|
||||||
|
|
10
Square.c
10
Square.c
|
@ -102,11 +102,11 @@ Square* Square_new (double a)
|
||||||
{
|
{
|
||||||
static Square_interface vtable =
|
static Square_interface vtable =
|
||||||
{
|
{
|
||||||
Square_clone,
|
(void* (*) (void *)) Square_clone,
|
||||||
Square_destroy,
|
(void (*) (void *)) Square_destroy,
|
||||||
Square_type,
|
(const char* (*) (Figure *)) Square_type,
|
||||||
Square_draw,
|
(void (*) (Figure *)) Square_draw,
|
||||||
Square_area,
|
(double (*) (Figure *)) Square_area,
|
||||||
Square_resize,
|
Square_resize,
|
||||||
Square_diag_length
|
Square_diag_length
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue