From c9615c3ba00a96e691801b3bdd3dda961052263b Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 19 Jun 2005 20:47:23 +0000 Subject: Revbump to fix signed/unsigned issue which caused segfault on 64bit archs. Pusing into stable amd64. Closes bug #89751 thanks to Scott Smith (Portage version: 2.0.51.22-r1) --- media-sound/toolame/files/digest-toolame-02l-r1 | 1 + media-sound/toolame/files/toolame-02l-uint.patch | 27 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 media-sound/toolame/files/digest-toolame-02l-r1 create mode 100644 media-sound/toolame/files/toolame-02l-uint.patch (limited to 'media-sound/toolame/files') diff --git a/media-sound/toolame/files/digest-toolame-02l-r1 b/media-sound/toolame/files/digest-toolame-02l-r1 new file mode 100644 index 000000000000..28158002d0e5 --- /dev/null +++ b/media-sound/toolame/files/digest-toolame-02l-r1 @@ -0,0 +1 @@ +MD5 5946e2dd78fbb57e54386b3b5d873fee toolame-02l.tgz 127493 diff --git a/media-sound/toolame/files/toolame-02l-uint.patch b/media-sound/toolame/files/toolame-02l-uint.patch new file mode 100644 index 000000000000..619c98bb4547 --- /dev/null +++ b/media-sound/toolame/files/toolame-02l-uint.patch @@ -0,0 +1,27 @@ +diff -aur toolame-02l/audio_read.c toolame-02l-fixed/audio_read.c +--- toolame-02l/audio_read.c 2003-03-01 17:18:30.000000000 -0800 ++++ toolame-02l-fixed/audio_read.c 2005-04-19 22:32:41.288998770 -0700 +@@ -436,7 +436,7 @@ + + if (pcm_aiff_data->sampleSize != sizeof (short) * BITS_IN_A_BYTE) { + fprintf (stderr, "Sound data is not %d bits in \"%s\".\n", +- sizeof (short) * BITS_IN_A_BYTE, file_name); ++ (int)(sizeof (short) * BITS_IN_A_BYTE), file_name); + exit (1); + } + +diff -aur toolame-02l/fft.c toolame-02l-fixed/fft.c +--- toolame-02l/fft.c 2003-03-01 23:14:45.000000000 -0800 ++++ toolame-02l-fixed/fft.c 2005-04-19 22:47:49.019986989 -0700 +@@ -1190,9 +1190,9 @@ + static FLOAT atan_t[ATANSIZE]; + + INLINE FLOAT atan_table(FLOAT y, FLOAT x) { +- int index; ++ unsigned int index; + +- index = (int)(ATANSCALE * fabs(y/x)); ++ index = (unsigned int)(ATANSCALE * fabs(y/x)); + if (index>=ATANSIZE) + index = ATANSIZE-1; + -- cgit v1.2.3-65-gdbad