diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2013-09-30 13:43:38 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2013-09-30 13:43:38 +0300 |
commit | d45716228fdf01459e4b583cb4c3f94435eca302 (patch) | |
tree | 5abed1f244448af89c208ce8213f385a3a473a1c /src/post/goom/motif_goom1.h | |
parent | fa64d9b9397c0912e5f95f257138573a14a8cd82 (diff) | |
download | xine-lib-d45716228fdf01459e4b583cb4c3f94435eca302.tar.gz xine-lib-d45716228fdf01459e4b583cb4c3f94435eca302.tar.bz2 |
goom: Mark data static const. Use union to fix initialization.
Diffstat (limited to 'src/post/goom/motif_goom1.h')
-rw-r--r-- | src/post/goom/motif_goom1.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/post/goom/motif_goom1.h b/src/post/goom/motif_goom1.h index b4a9f3f1d..0a40a35c2 100644 --- a/src/post/goom/motif_goom1.h +++ b/src/post/goom/motif_goom1.h @@ -1,4 +1,7 @@ -static Motif CONV_MOTIF1 = { +static const union { + const char u8[sizeof(Motif)]; + const Motif motif; +} CONV_MOTIF1 = {{ 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15, 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15, 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15, @@ -1023,4 +1026,4 @@ static Motif CONV_MOTIF1 = { 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15, 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15, 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15 - }; + }}; |