aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-21 17:09:49 +0200
committerMax Kellermann <max@duempel.org>2014-08-21 17:09:49 +0200
commitae27c3f4c5dcd5d6306c68c3fd901c07a9ff4330 (patch)
treea996005135334b0aa3c825ce2f54330db9a4522d /src/decoder
parent6d41f3626694d7f16b657e8b2f3abb2816b1f649 (diff)
downloadmpd-ae27c3f4c5dcd5d6306c68c3fd901c07a9ff4330.tar.gz
mpd-ae27c3f4c5dcd5d6306c68c3fd901c07a9ff4330.tar.xz
mpd-ae27c3f4c5dcd5d6306c68c3fd901c07a9ff4330.zip
decoder/dsf: use size_t loop variables when the limit is a size_t
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/DsfDecoderPlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/DsfDecoderPlugin.cxx b/src/decoder/plugins/DsfDecoderPlugin.cxx
index 20102c43e..b02d0179c 100644
--- a/src/decoder/plugins/DsfDecoderPlugin.cxx
+++ b/src/decoder/plugins/DsfDecoderPlugin.cxx
@@ -200,12 +200,12 @@ dsf_to_pcm_order(uint8_t *dest, size_t nrbytes)
uint8_t scratch[8192];
assert(nrbytes <= sizeof(scratch));
- for (unsigned i = 0, j = 0; i < (unsigned)nrbytes; i += 2) {
+ for (size_t i = 0, j = 0; i < nrbytes; i += 2) {
scratch[i] = *(dest+j);
j++;
}
- for (unsigned i = 1, j = 0; i < (unsigned) nrbytes; i += 2) {
+ for (size_t i = 1, j = 0; i < nrbytes; i += 2) {
scratch[i] = *(dest+4096+j);
j++;
}