Skip to content

Commit

Permalink
DSPAccelerator: const qualify pointer parameter for Read()
Browse files Browse the repository at this point in the history
The data pointed to is only ever read, so make this explicit.
  • Loading branch information
lioncash committed Jun 4, 2018
1 parent 9b43180 commit 1e3e11d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/DSP/DSPAccelerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void Accelerator::WriteD3(u16 value)
}
}

u16 Accelerator::Read(s16* coefs)
u16 Accelerator::Read(const s16* coefs)
{
if (m_reads_stopped)
return 0x0000;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/DSP/DSPAccelerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Accelerator
public:
virtual ~Accelerator() = default;

u16 Read(s16* coefs);
u16 Read(const s16* coefs);
// Zelda ucode reads ARAM through 0xffd3.
u16 ReadD3();
void WriteD3(u16 value);
Expand Down

0 comments on commit 1e3e11d

Please sign in to comment.