aboutsummaryrefslogtreecommitdiffstats
path: root/ponymix.cc
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-08-03 14:13:06 -0400
committerDave Reisner <dreisner@archlinux.org>2013-08-03 14:13:06 -0400
commitb24c6ad25c7ed0a08b13b8ee0648b5c6976eda18 (patch)
tree153fae0f63caa38cf9bf1eb96877e72e27c16df9 /ponymix.cc
parent0c61eb9b47f0a706c68d9ce05fc1f0800657089a (diff)
downloadmirror-ponymix-b24c6ad25c7ed0a08b13b8ee0648b5c6976eda18.tar.gz
mirror-ponymix-b24c6ad25c7ed0a08b13b8ee0648b5c6976eda18.tar.bz2
mirror-ponymix-b24c6ad25c7ed0a08b13b8ee0648b5c6976eda18.zip
favor static_cast over c-style casts
Diffstat (limited to 'ponymix.cc')
-rw-r--r--ponymix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponymix.cc b/ponymix.cc
index 1e5afae..18ddd21 100644
--- a/ponymix.cc
+++ b/ponymix.cc
@@ -332,7 +332,7 @@ static int adj_volume(PulseClient& ponymix,
// Allow setting the volume over 100, but don't "clip" the level back down to
// 100 on adjustment.
- ponymix.SetVolumeRange(0, std::max(device->Volume(), (int)opt_maxvolume));
+ ponymix.SetVolumeRange(0, std::max(device->Volume(), static_cast<int>(opt_maxvolume)));
return !(ponymix.*adjust)(*device, delta);
}