diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-25 03:04:33 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-25 03:04:33 +0300 |
commit | 744bf587fd7f117ba4884fe3406be4237dd92a8c (patch) | |
tree | a70f48d4be1c5d46a069b6168838fb550e60450a /src/cvt_mus2mid.hpp | |
parent | ec93b221f77ddc3354d78ab4cc06968cd530e09a (diff) | |
download | libADLMIDI-744bf587fd7f117ba4884fe3406be4237dd92a8c.tar.gz libADLMIDI-744bf587fd7f117ba4884fe3406be4237dd92a8c.tar.bz2 libADLMIDI-744bf587fd7f117ba4884fe3406be4237dd92a8c.zip |
Using bigger integers for math in some places
Diffstat (limited to 'src/cvt_mus2mid.hpp')
-rw-r--r-- | src/cvt_mus2mid.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cvt_mus2mid.hpp b/src/cvt_mus2mid.hpp index 5a465c2..b5096c6 100644 --- a/src/cvt_mus2mid.hpp +++ b/src/cvt_mus2mid.hpp @@ -167,10 +167,10 @@ static void mus2mid_write4(struct mus_ctx *ctx, uint32_t val) { if (ctx->dstrem < 4) mus2mid_resize_dst(ctx); - *ctx->dst_ptr++ = (val>>24)&0xff; - *ctx->dst_ptr++ = (val>>16)&0xff; - *ctx->dst_ptr++ = (val>>8) & 0xff; - *ctx->dst_ptr++ = val & 0xff; + *ctx->dst_ptr++ = (uint8_t)((val>>24)&0xff); + *ctx->dst_ptr++ = (uint8_t)((val>>16)&0xff); + *ctx->dst_ptr++ = (uint8_t)((val>>8) & 0xff); + *ctx->dst_ptr++ = (uint8_t)((val & 0xff)); ctx->dstrem -= 4; } |