summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/oyranos/files/oyranos-0.9.0-array.patch')
-rw-r--r--media-libs/oyranos/files/oyranos-0.9.0-array.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/media-libs/oyranos/files/oyranos-0.9.0-array.patch b/media-libs/oyranos/files/oyranos-0.9.0-array.patch
new file mode 100644
index 000000000000..bd8ee069e443
--- /dev/null
+++ b/media-libs/oyranos/files/oyranos-0.9.0-array.patch
@@ -0,0 +1,37 @@
+from http://www.oyranos.org/scm?p=oyranos.git;a=commitdiff;h=0ed3aef1320ccc168c2753ac4cf426290fac6639
+--- a/API_generated/oyArray2d_s_.c
++++ b/API_generated/oyArray2d_s_.c
+@@ -13,7 +13,7 @@
+ * @author Kai-Uwe Behrmann <ku.b@gmx.de>
+ * @par License:
+ * new BSD - see: http://www.opensource.org/licenses/bsd-license.php
+- * @date 2012/10/24
++ * @date 2012/11/02
+ */
+
+
+@@ -404,9 +404,9 @@
+ *
+ * @param[in,out] obj struct object
+ *
+- * @version Oyranos: 0.1.11
++ * @version Oyranos: 0.9.1
++ * @date 2012/11/02
+ * @since 2010/09/07 (Oyranos: 0.1.11)
+- * @date 2010/09/07
+ */
+ int oyArray2d_ReleaseArray_ ( oyArray2d_s * obj )
+ {
+@@ -428,10 +428,10 @@
+ {
+ if((s->own_lines == 1 && y == s->data_area.y) ||
+ s->own_lines == 2)
+- deallocateFunc( &s->array2d[y][dsize * (int)s->data_area.x] );
++ deallocateFunc( &s->array2d[y][dsize * (int)OY_ROUND(s->data_area.x)] );
+ s->array2d[y] = 0;
+ }
+- deallocateFunc( s->array2d + (size_t)s->data_area.y );
++ deallocateFunc( s->array2d + (int)OY_ROUND(s->data_area.y) );
+ s->array2d = 0;
+ }
+