From: Øyvind Kolås Date: Wed, 4 Oct 2017 14:47:39 +0000 (+0200) Subject: babl: rearrange BablModel struct X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~21^2~76 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d02749a0825a37d621febda1602ee75ae151f4d0;p=babl.git babl: rearrange BablModel struct Babl is doing casting that relies on BablFormat / BablModel having the same layout for shared members. --- diff --git a/babl/babl-model.h b/babl/babl-model.h index 96ff903..0862379 100644 --- a/babl/babl-model.h +++ b/babl/babl-model.h @@ -30,8 +30,8 @@ typedef struct BablType **type; /*< must be doubles, used here for convenience in code */ void *data; /* user-data, used for palette */ - void *model; /* back pointer to model with sRGB space */ const Babl *space; + void *model; /* back pointer to model with sRGB space */ } BablModel; #endif