Skip to content

Instantly share code, notes, and snippets.

@mistydemeo
Created September 4, 2011 17:27
Show Gist options
  • Save mistydemeo/1193178 to your computer and use it in GitHub Desktop.
Save mistydemeo/1193178 to your computer and use it in GitHub Desktop.
SidPlay SmartPtr patch for GCC 3.4 compilation
--- sidplay-libs-2.1.1/libsidplay/include/sidplay/SmartPtr.h 2001/03/21 22:43:21 1.1
+++ sidplay-libs-2.1.1/libsidplay/include/sidplay/SmartPtr.h 2004/06/16 18:27:41 1.2
@@ -211,16 +211,16 @@
{
if ( bufferLen >= 1 )
{
- pBufCurrent = ( bufBegin = buffer );
- bufEnd = bufBegin + bufferLen;
- bufLen = bufferLen;
- status = true;
+ this->pBufCurrent = ( this->bufBegin = buffer );
+ this->bufEnd = buffer + bufferLen;
+ this->bufLen = bufferLen;
+ this->status = true;
}
else
{
- pBufCurrent = bufBegin = bufEnd = 0;
- bufLen = 0;
- status = false;
+ this->pBufCurrent = this->bufBegin = this->bufEnd = 0;
+ this->bufLen = 0;
+ this->status = false;
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment