logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

libsidplay-2.1.1-gcc41.patch (1063B)


  1. --- a/libsidplay/include/sidplay/SmartPtr.h
  2. +++ b/libsidplay/include/sidplay/SmartPtr.h
  3. @@ -211,16 +211,16 @@
  4. {
  5. if ( bufferLen >= 1 )
  6. {
  7. - pBufCurrent = ( bufBegin = buffer );
  8. - bufEnd = bufBegin + bufferLen;
  9. - bufLen = bufferLen;
  10. - status = true;
  11. + this->pBufCurrent = ( this->bufBegin = buffer );
  12. + this->bufEnd = this->bufBegin + bufferLen;
  13. + this->bufLen = bufferLen;
  14. + this->status = true;
  15. }
  16. else
  17. {
  18. - pBufCurrent = bufBegin = bufEnd = 0;
  19. - bufLen = 0;
  20. - status = false;
  21. + this->pBufCurrent = this->bufBegin = this->bufEnd = 0;
  22. + this->bufLen = 0;
  23. + this->status = false;
  24. }
  25. }
  26. };
  27. --- a/libsidutils/include/sidplay/utils/SidUsage.h
  28. +++ b/libsidutils/include/sidplay/utils/SidUsage.h
  29. @@ -33,7 +33,7 @@
  30. uint_least16_t length; // usage scan length
  31. // Copy common parts of basic usage to extended usage.
  32. - sid2_usage_t &sid2_usage_t::operator= (const sid_usage_t &usage)
  33. + sid2_usage_t &operator= (const sid_usage_t &usage)
  34. {
  35. *((sid_usage_t *) this) = usage;
  36. return *this;