From: Andre Noll Date: Sat, 8 Sep 2018 11:14:37 +0000 (+0200) Subject: check_wav: Remove pointless cast. X-Git-Tag: v0.6.3~67 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=bab99bab677988723afe14a7d680e6d5cc7ddda4;p=paraslash.git check_wav: Remove pointless cast. cwc->channels is already unsigned. --- diff --git a/check_wav.c b/check_wav.c index 025dcb85..89ebdacc 100644 --- a/check_wav.c +++ b/check_wav.c @@ -156,7 +156,7 @@ int check_wav_post_select(struct check_wav_context *cwc) PARA_INFO_LOG("found wav header\n"); cwc->state = CWS_HAVE_HEADER; /* Only set those values which have not already been set. */ - cwc->channels = (unsigned)a[22]; + cwc->channels = a[22]; cwc->sample_rate = read_u32(a + 24); bps = read_u16(a + 34); if (bps != 8 && bps != 16) {