aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorDavid Turner2010-06-08 20:29:33 +0000
committerDavid Turner2010-06-08 20:29:33 +0000
commit641ffa5ee3b8036c1a03fc557d0f9705c824eb3e (patch)
treecb96562bec692f5c87a869e7e1e48cfbe6da8bb0 /sound
parent73010518b22c8c24cf09b07bbd6c17655aa1d331 (diff)
downloadscummvm-rg350-641ffa5ee3b8036c1a03fc557d0f9705c824eb3e.tar.gz
scummvm-rg350-641ffa5ee3b8036c1a03fc557d0f9705c824eb3e.tar.bz2
scummvm-rg350-641ffa5ee3b8036c1a03fc557d0f9705c824eb3e.zip
Modification to remove false positive "Possible divide by zero" warnings given by cppcheck-1.43.
These are incorrect as '/' operator has precedence over >>, but this does improve readability anyway. This bug in cppcheck has already been corrected: http://sourceforge.net/apps/trac/cppcheck/ticket/1714 svn-id: r49517
Diffstat (limited to 'sound')
-rw-r--r--sound/softsynth/sid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/softsynth/sid.cpp b/sound/softsynth/sid.cpp
index e0dfd2efc0..d600ac28f5 100644
--- a/sound/softsynth/sid.cpp
+++ b/sound/softsynth/sid.cpp
@@ -506,7 +506,7 @@ Filter::Filter() {
+ sizeof(f0_points_6581)/sizeof(*f0_points_6581) - 1,
PointPlotter<sound_sample>(f0_6581), 1.0);
- mixer_DC = -0xfff*0xff/18 >> 7;
+ mixer_DC = (-0xfff*0xff/18) >> 7;
f0 = f0_6581;
f0_points = f0_points_6581;