From acdfaa28cef3b8a700eb305081cb50a54f78c5dd Mon Sep 17 00:00:00 2001 From: Klez Date: Sun, 2 Dec 2018 18:01:54 +0100 Subject: [PATCH] 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]; --- src/devices/sound/scsp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/sound/scsp.cpp b/src/devices/sound/scsp.cpp index 01d214fca53..6ba559ffc6a 100644 --- a/src/devices/sound/scsp.cpp +++ b/src/devices/sound/scsp.cpp @@ -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));