Control: tags -1 patch
Dear Maintainer,
Please find in attachment a patch that you can drop in the
debian/patches/ directory to fix the build on 32 bit archs
Best regards,
Sébastien
Description: Fix build on 32 bit archs
Origin: https://git.almalinux.org/rpms/OpenEXR/src/branch/a10s/gcc14.patch
--- a/src/lib/OpenEXRCore/internal_dwa_compressor.h
+++ b/src/lib/OpenEXRCore/internal_dwa_compressor.h
@@ -54,7 +54,7 @@
compbufsz = out_bytes_avail;
if (Z_OK != compress2 (
(Bytef*) out,
- &compbufsz,
+ (uLongf *) &compbufsz,
(const Bytef*) in,
(uLong) in_bytes,
level))
--- a/src/lib/OpenEXRCore/internal_zip.c
+++ b/src/lib/OpenEXRCore/internal_zip.c
@@ -362,7 +362,7 @@
compbufsz = encode->compressed_alloc_size;
if (Z_OK != compress2 (
(Bytef*) encode->compressed_buffer,
- &compbufsz,
+ (uLongf *) &compbufsz,
(const Bytef*) encode->scratch_buffer_1,
(uLong) encode->packed_bytes,
level))