diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-20 00:44:39 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-20 00:44:39 +0300 |
commit | 58e055fc0a43d583a4638b7bd6a5e20c536fd49c (patch) | |
tree | 5a167aa9e4b0463364ee4dd5ba87b7e67923b060 /src/chips/opl_chip_base.cpp | |
parent | fe5ded7405c50b039d70ee88030e2154abefbd67 (diff) | |
download | libADLMIDI-58e055fc0a43d583a4638b7bd6a5e20c536fd49c.tar.gz libADLMIDI-58e055fc0a43d583a4638b7bd6a5e20c536fd49c.tar.bz2 libADLMIDI-58e055fc0a43d583a4638b7bd6a5e20c536fd49c.zip |
Fix a small warning, found on attempt to build OPL3 Bank Editor
Diffstat (limited to 'src/chips/opl_chip_base.cpp')
-rw-r--r-- | src/chips/opl_chip_base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chips/opl_chip_base.cpp b/src/chips/opl_chip_base.cpp index 4a7c4f5..670a998 100644 --- a/src/chips/opl_chip_base.cpp +++ b/src/chips/opl_chip_base.cpp @@ -26,7 +26,7 @@ int OPLChipBase::generate32(int32_t *output, size_t frames) enum { maxFramesAtOnce = 256 }; int16_t temp[2 * maxFramesAtOnce]; for(size_t left = frames; left > 0;) { - size_t count = (left < maxFramesAtOnce) ? left : maxFramesAtOnce; + size_t count = (left < static_cast<size_t>(maxFramesAtOnce)) ? left : static_cast<size_t>(maxFramesAtOnce); generate(temp, count); for(size_t i = 0; i < 2 * count; ++i) output[i] = temp[i]; @@ -41,7 +41,7 @@ int OPLChipBase::generateAndMix32(int32_t *output, size_t frames) enum { maxFramesAtOnce = 256 }; int16_t temp[2 * maxFramesAtOnce]; for(size_t left = frames; left > 0;) { - size_t count = (left < maxFramesAtOnce) ? left : maxFramesAtOnce; + size_t count = (left < static_cast<size_t>(maxFramesAtOnce)) ? left : static_cast<size_t>(maxFramesAtOnce); generate(temp, count); for(size_t i = 0; i < 2 * count; ++i) output[i] += temp[i]; |