mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
sound/scsp.cpp - Fix compilation on OSX Clang
Changes decrement operation from "=-" to "-=" Error: ../../../../../src/devices/sound/scsp.cpp:1549:6: error: use of unary operator that may be intended as compound assignment (-=) [-Werror] p =- 128; ^~ ../../../../../src/devices/sound/scsp.cpp:1585:9: error: use of unary operator that may be intended as compound assignment (-=) [-Werror] limit =- ASCALE[s];
This commit is contained in:
parent
26da0fedf2
commit
acdfaa28ce
@ -1546,7 +1546,7 @@ void scsp_device::LFO_Init()
|
||||
else
|
||||
{
|
||||
a = 0;
|
||||
p =- 128;
|
||||
p -= 128;
|
||||
}
|
||||
m_ALFO_SQR[i] = a;
|
||||
m_PLFO_SQR[i] = p;
|
||||
@ -1582,7 +1582,7 @@ void scsp_device::LFO_Init()
|
||||
{
|
||||
m_PSCALES[s][i+128] = CENTS(((limit * (float) i) / 128.0f));
|
||||
}
|
||||
limit =- ASCALE[s];
|
||||
limit -= ASCALE[s];
|
||||
for (int i = 0; i < 256; ++i)
|
||||
{
|
||||
m_ASCALES[s][i] = DB(((limit * (float) i) / 256.0f));
|
||||
|
Loading…
Reference in New Issue
Block a user