X-Git-Url: http://nitlanguage.org diff --git a/lib/mpd.nit b/lib/mpd.nit index 727ac60..b0d25d8 100644 --- a/lib/mpd.nit +++ b/lib/mpd.nit @@ -130,7 +130,7 @@ class MPDConnection var vol = status.volume if vol != null then var new_vol = vol + diff - new_vol = new_vol.max(0).min(100) + new_vol = new_vol.clamp(0, 100) volume = new_vol return end