summaryrefslogtreecommitdiff
path: root/harmony/libsndfile/varargs-32bit.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-10 15:23:49 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-10 15:23:49 -0600
commit9d2169fa6052b7162d35ef193b8e1e6647e51ae9 (patch)
tree19f3d1d07d6a45a07033ca635f5b16913599f004 /harmony/libsndfile/varargs-32bit.patch
parent4dc739c92a03d072052c87a896c7ef65126dd0a7 (diff)
downloadpackages-9d2169fa6052b7162d35ef193b8e1e6647e51ae9.tar.gz
packages-9d2169fa6052b7162d35ef193b8e1e6647e51ae9.tar.bz2
packages-9d2169fa6052b7162d35ef193b8e1e6647e51ae9.tar.xz
packages-9d2169fa6052b7162d35ef193b8e1e6647e51ae9.zip
harmony/libsndfile: fix 32-bit build
Diffstat (limited to 'harmony/libsndfile/varargs-32bit.patch')
-rw-r--r--harmony/libsndfile/varargs-32bit.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/harmony/libsndfile/varargs-32bit.patch b/harmony/libsndfile/varargs-32bit.patch
new file mode 100644
index 000000000..81f149add
--- /dev/null
+++ b/harmony/libsndfile/varargs-32bit.patch
@@ -0,0 +1,11 @@
+--- libsndfile-1.0.28/src/rf64.c.old 2017-04-02 02:43:22.000000000 -0500
++++ libsndfile-1.0.28/src/rf64.c 2018-03-04 22:35:31.072461118 -0600
+@@ -737,7 +737,7 @@
+
+ pad_size = psf->dataoffset - 16 - psf->header.indx ;
+ if (pad_size >= 0)
+- psf_binheader_writef (psf, "m4z", PAD_MARKER, pad_size, make_size_t (pad_size)) ;
++ psf_binheader_writef (psf, "m4z", PAD_MARKER, (unsigned int) pad_size, make_size_t (pad_size)) ;
+
+ if (wpriv->rf64_downgrade && (psf->filelength < RIFF_DOWNGRADE_BYTES))
+ psf_binheader_writef (psf, "tm8", data_MARKER, psf->datalength) ;