diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2005-06-03 11:42:48 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2005-06-03 11:42:48 +0000 |
commit | 6b6fd72704555b2e108d53b747a5cd632e1a7e22 (patch) | |
tree | 8cc4f7b5407eee43a7388b02f0568950cd004d2f /audio/muse/files | |
parent | Remove useless line. (diff) |
Fix build on RELENG_5 (gcc 3.4.2).
Problem submitted by: Eugene M. Zheganin <emz@norma.perm.ru>
Idea for patch from: fjoe
PR: 81827
Diffstat (limited to 'audio/muse/files')
-rw-r--r-- | audio/muse/files/patch-src::pipe.cpp | 119 |
1 files changed, 117 insertions, 2 deletions
diff --git a/audio/muse/files/patch-src::pipe.cpp b/audio/muse/files/patch-src::pipe.cpp index bc2e8a220f78..f006ea670474 100644 --- a/audio/muse/files/patch-src::pipe.cpp +++ b/audio/muse/files/patch-src::pipe.cpp @@ -1,5 +1,5 @@ ---- src/pipe.cpp.orig Mon Dec 8 21:20:33 2003 -+++ src/pipe.cpp Mon Apr 19 22:39:37 2004 +--- src/pipe.cpp.orig Mon Dec 8 17:20:33 2003 ++++ src/pipe.cpp Fri Jun 3 16:58:02 2005 @@ -25,7 +25,8 @@ */ @@ -10,3 +10,118 @@ #include <audioproc.h> #include <pipe.h> #include <jutils.h> +@@ -118,9 +119,9 @@ + } + /* --- */ + +- (char*)start += currentBlockSize; ++ start = (char*)start + currentBlockSize; + len -= currentBlockSize; +- (char*)pp += currentBlockSize; ++ pp = (float*)pp + currentBlockSize; + length -= currentBlockSize; + if ((end!=buffer) && (start==bufferEnd)) + start = buffer; +@@ -146,8 +147,8 @@ + } + /* --- */ + +- (char*)pp += len; +- (char*)start += len; ++ pp = (float*)pp + len; ++ start = (char*)start + len; + length -= len; + if ((end!=buffer) && (start==bufferEnd)) + start = buffer; +@@ -224,9 +225,9 @@ + } + /* --- */ + +- (char*)start += currentBlockSize; ++ start = (char*)start + currentBlockSize; + len -= currentBlockSize; +- (char*)pp += currentBlockSize; ++ pp = (float**)pp + currentBlockSize; + length -= currentBlockSize; + if ((end!=buffer) && (start==bufferEnd)) + start = buffer; +@@ -253,8 +254,8 @@ + } + /* --- */ + +- (char*)pp += len; +- (char*)start += len; ++ pp = (float**)pp + len; ++ start = (char*)start + len; + length -= len; + if ((end!=buffer) && (start==bufferEnd)) + start = buffer; +@@ -309,9 +310,9 @@ + pp[c] += (int32_t) ((IN_DATATYPE*)start)[c]; + /* --- */ + +- (char*)start += currentBlockSize; ++ start = (char*)start + currentBlockSize; + len -= currentBlockSize; +- (char*)pp += currentBlockSize; ++ pp = (int32_t*)pp + currentBlockSize; + length -= currentBlockSize; + if ((end!=buffer) && (start==bufferEnd)) + start = buffer; +@@ -324,8 +325,8 @@ + pp[c] += (int) ((IN_DATATYPE*)start)[c]; + /* --- */ + +- (char*)pp += len; +- (char*)start += len; ++ pp = (int32_t*)pp + len; ++ start = (char*)start + len; + length -= len; + if ((end!=buffer) && (start==bufferEnd)) + start = buffer; +@@ -372,17 +373,17 @@ + /* fill */ + memcpy(data, start, currentBlockSize); + +- (char*)start += currentBlockSize; ++ start = (char*)start + currentBlockSize; + len -= currentBlockSize; +- (char*)data += currentBlockSize; ++ data = (char*)data + currentBlockSize; + length -= currentBlockSize; + if ((end!=buffer) && (start==bufferEnd)) + start = buffer; + + if (len) { /* short circuit */ + memcpy(data, start, len); +- (char*)data += len; +- (char*)start += len; ++ data = (char*)data + len; ++ start = (char*)start + len; + length -= len; + if ((end!=buffer) && (start==bufferEnd)) + start = buffer; +@@ -418,19 +419,19 @@ + currentBlockSize=MIN(currentBlockSize, len); + ::memcpy(end, data, currentBlockSize); + +- (char*)end += currentBlockSize; ++ end = (char*)end + currentBlockSize; + + len -= currentBlockSize; + +- (char*)data += currentBlockSize; ++ data = (char*)data + currentBlockSize; + length -= currentBlockSize; + if ((start!=buffer) && (end==bufferEnd)) + end = buffer; + + if (len) { // short circuit + ::memcpy(end, data, len); +- (char*)data += len; +- (char*)end += len; ++ data = (char*)data + len; ++ end = (char*)end + len; + length -= len; + + if ((start!=buffer) && (end==bufferEnd)) |