diff options
| author | 2008-03-24 01:36:47 +0000 | |
|---|---|---|
| committer | 2008-03-24 01:36:47 +0000 | |
| commit | e04bb4f69919fe3d68b0a9487c9c967f75a1d257 (patch) | |
| tree | d19c9c7a723bfb8a58173a4ae09de1aa04caa8ec | |
| parent | e22e29dc9b4613d31b82306085b3973dce7a65bd (diff) | |
From: Lei Wu [mailto:lanewu@hotmail.com]
Subject: MSVC9 fix [Emuman]
the original macro is too long, which caused a MSVC9 internal compiler error
| -rw-r--r-- | src/emu/mconfig.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/mconfig.c b/src/emu/mconfig.c index 41e8f2e635f..950b156d3bd 100644 --- a/src/emu/mconfig.c +++ b/src/emu/mconfig.c @@ -209,7 +209,7 @@ static void machine_config_detokenize(machine_config *config, const machine_conf { device_type devtype; const char *tag; - int size, offset, type, bits; + int size, offset, type, bits, in, out; UINT32 data32, clock, gain; UINT64 data64; @@ -516,8 +516,10 @@ static void machine_config_detokenize(machine_config *config, const machine_conf case MCONFIG_TOKEN_SOUND_ROUTE: assert(sound != NULL); + in = sound->route[sound->routes].input; + out = sound->route[sound->routes].output; TOKEN_UNGET_UINT32(tokens); - TOKEN_GET_UINT64_UNPACK4(tokens, entrytype, 8, sound->route[sound->routes].output, -12, sound->route[sound->routes].input, -12, gain, 32); + TOKEN_GET_UINT64_UNPACK4(tokens, entrytype, 8, out, -12, in, -12, gain, 32); sound->route[sound->routes].gain = (float)gain / 16777216.0f; sound->route[sound->routes].target = TOKEN_GET_STRING(tokens); sound->routes++; |
