summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2020-04-04 09:21:05 -0400
committer arbee <rb6502@users.noreply.github.com>2020-04-04 09:21:05 -0400
commit495b26dd6c78ee8a566caf525b020598522b2850 (patch)
tree322a941cae669e9a14efac5b8bbebf0a4f960cfa
parentff8cf238ad54593de6cbc9f1ae4740d37d977369 (diff)
fix compile (nw)
-rw-r--r--src/devices/sound/s_dsp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/s_dsp.h b/src/devices/sound/s_dsp.h
index 934a0a6d88e..296ac0c4dca 100644
--- a/src/devices/sound/s_dsp.h
+++ b/src/devices/sound/s_dsp.h
@@ -76,7 +76,7 @@ private:
inline u16 vptr(u8 sd, u8 v) { return read_word((sd << 8) + (m_dsp_regs[v + 4] << 2)); } /* Ptr to start of sample data */
inline u16 lptr(u8 sd, u8 v) { return read_word((sd << 8) + (m_dsp_regs[v + 4] << 2) + 2); } /* Loop pointer in sample data */
- inline u16 pitch(u8 v) { (m_dsp_regs[v + 2] | (m_dsp_regs[v + 3] << 8)) & 0x3fff; }
+ inline u16 pitch(u8 v) { return (m_dsp_regs[v + 2] | (m_dsp_regs[v + 3] << 8)) & 0x3fff; }
/* Make reading the ADSR code easier */
inline u8 SL(u8 v) { return m_dsp_regs[(v << 4) + 6] >> 5; } /* Returns SUSTAIN level */