Description: Fix FTBFS due to GCC-14 being more picky than its predecessors
 GCC-14 will not implicitly convert between long and char*).
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075704
Last-Update: 2024-07-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tiff/yeti_tiff.c
+++ b/tiff/yeti_tiff.c
@@ -165,7 +165,7 @@
 static void on_free(void *);
 static void on_print(void *);
 static void on_eval(void *, int);
-static void on_extract(void *, long);
+static void on_extract(void *, char *);
 static object_t *get_object(int iarg);
 
 static y_userobj_t tiff_class = {
@@ -429,9 +429,9 @@
   }
 }
 
-static void on_extract(void *addr, long index)
+static void on_extract(void *addr, char * index)
 {
-  push_tag((object_t *)addr, index);
+  push_tag((object_t *)addr, (long) index);
 }
 
 static void on_eval(void *addr, int argc)
