Switch to unified view

a/src/sc2mpd.cpp b/src/sc2mpd.cpp
...
...
197
        swab(aMsg.Audio().Ptr(), buf, bytes);
197
        swab(aMsg.Audio().Ptr(), buf, bytes);
198
    } else if (aMsg.BitDepth() == 24) {
198
    } else if (aMsg.BitDepth() == 24) {
199
        unsigned char *ocp = (unsigned char *)buf;
199
        unsigned char *ocp = (unsigned char *)buf;
200
        const unsigned char *icp = (const unsigned char *)aMsg.Audio().Ptr();
200
        const unsigned char *icp = (const unsigned char *)aMsg.Audio().Ptr();
201
        const unsigned char *icp0 = icp;
201
        const unsigned char *icp0 = icp;
202
        while (icp - icp0 <= bytes - 3) {
202
        while (icp - icp0 <= int(bytes) - 3) {
203
            *ocp++ = icp[2];
203
            *ocp++ = icp[2];
204
            *ocp++ = icp[1];
204
            *ocp++ = icp[1];
205
            *ocp++ = *icp;
205
            *ocp++ = *icp;
206
            icp += 3;
206
            icp += 3;
207
        }
207
        }