summaryrefslogtreecommitdiff
path: root/Source/Plugins
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-10-28 22:51:00 +0000
committerhrydgard <hrydgard@gmail.com>2009-10-28 22:51:00 +0000
commit2a99dfb2615d445eddfd170a0b9aafacfa4edbc4 (patch)
tree2bed604f65b4a1f6e98414a39df44ff2b7e35705 /Source/Plugins
parentf3681c0e1b606a3199a8239c5af490503c447484 (diff)
tiny change: get rid of a couple of uses of "long". better to use int or the explicitly sized typedefs. possibly really minor speedup of zelda ucode audio on linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4474 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins')
-rw-r--r--Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_ADPCM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_ADPCM.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_ADPCM.cpp
index c728ab4cb2..f33713f581 100644
--- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_ADPCM.cpp
+++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_ADPCM.cpp
@@ -67,7 +67,7 @@ void CUCode_Zelda::AFCdecodebuffer(const s16 *coef, const char *src, signed shor
short hist2 = *hist2p;
for (int i = 0; i < 16; i++)
{
- int sample = delta * nibbles[i] + ((long)hist * coef[idx * 2]) + ((long)hist2 * coef[idx * 2 + 1]);
+ int sample = delta * nibbles[i] + ((int)hist * coef[idx * 2]) + ((int)hist2 * coef[idx * 2 + 1]);
if (type == 9)
sample >>= 11;
else