gegl r3006 - in trunk: . gegl/property-types operations/common
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r3006 - in trunk: . gegl/property-types operations/common
- Date: Tue, 31 Mar 2009 20:19:07 +0000 (UTC)
Author: martinn
Date: Tue Mar 31 20:19:07 2009
New Revision: 3006
URL: http://svn.gnome.org/viewvc/gegl?rev=3006&view=rev
Log:
unsized arrays are not supported by many vendor compilers
Patch from Gary V. Vaughan
Modified:
trunk/ChangeLog
trunk/gegl/property-types/gegl-path.c
trunk/operations/common/color-temperature.c
Modified: trunk/gegl/property-types/gegl-path.c
==============================================================================
--- trunk/gegl/property-types/gegl-path.c (original)
+++ trunk/gegl/property-types/gegl-path.c Tue Mar 31 20:19:07 2009
@@ -33,7 +33,7 @@
typedef struct GeglPathItem
{
gchar type; /* should perhaps be padded out? */
- Point point[]; /* variable length internally */
+ Point point[1]; /* variable length internally */
} GeglPathItem;
#include "gegl.h"
Modified: trunk/operations/common/color-temperature.c
==============================================================================
--- trunk/operations/common/color-temperature.c (original)
+++ trunk/operations/common/color-temperature.c Tue Mar 31 20:19:07 2009
@@ -34,7 +34,7 @@
#include "gegl-chant.h"
-static const gfloat rgb_r55[][12];
+static const gfloat rgb_r55[3][12];
static void
convert_k_to_rgb (gfloat temperature,
@@ -203,7 +203,7 @@
*
* converted to the linear RGB space assuming the ITU-R BT.709-5/sRGB primaries
*/
-static const gfloat rgb_r55[][12] =
+static const gfloat rgb_r55[3][12] =
{
{
6.9389923563552169e-01, 2.7719388100974670e+03,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]