forked from Lainports/freebsd-ports
Fix build with gcc41
This commit is contained in:
parent
d51630c33c
commit
c12ed948eb
1 changed files with 27 additions and 0 deletions
27
audio/spiralloops/files/patch-SpiralSound-Sample.h
Normal file
27
audio/spiralloops/files/patch-SpiralSound-Sample.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
--- SpiralSound/Sample.h.orig Fri Dec 22 18:39:01 2006
|
||||
+++ SpiralSound/Sample.h Fri Dec 22 18:39:30 2006
|
||||
@@ -63,13 +63,13 @@
|
||||
void Shrink(int Length);
|
||||
void CropTo(int NewLength);
|
||||
|
||||
- inline short &Sample::operator[](int i) const
|
||||
+ inline short &operator[](int i) const
|
||||
{
|
||||
assert(i>=0 && i<m_Length);
|
||||
return m_Data[i];
|
||||
}
|
||||
|
||||
- inline void Sample::Set(int i, long int v)
|
||||
+ inline void Set(int i, long int v)
|
||||
{
|
||||
assert(i>=0 && i<m_Length);
|
||||
// clip
|
||||
@@ -79,7 +79,7 @@
|
||||
m_Data[i]=(short)v;
|
||||
}
|
||||
|
||||
- inline Sample &Sample::operator=(const Sample &rhs)
|
||||
+ inline Sample &operator=(const Sample &rhs)
|
||||
{
|
||||
Allocate(rhs.GetLength());
|
||||
memcpy(m_Data,rhs.GetBuffer(),GetLengthInBytes());
|
||||
Loading…
Add table
Reference in a new issue